From 7ba2b7828cdcbcfc92a61cb9d1e6f1aec44caf4a Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Mon, 8 May 2017 09:21:49 -0700 Subject: [PATCH] Check for blank parameter and operator --- plexpy/notification_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 779bf32a..c4e1fc88 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -222,7 +222,7 @@ def notify_custom_conditions(notifier_id=None, parameters=None): values = condition['value'] # Set blank conditions to None - if not values: + if not parameter or not operator or not values: evaluated_conditions.append(None) continue