From e50ce507e50126086aa229ef762efa1fcf52e838 Mon Sep 17 00:00:00 2001 From: Mark Rawson Date: Thu, 19 Jun 2014 00:13:16 +0100 Subject: [PATCH] Bugfix - fix issue with Pushover test notifications, false-positive if api/user keys removed in UI but not yet saved --- sickbeard/notifiers/pushover.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sickbeard/notifiers/pushover.py b/sickbeard/notifiers/pushover.py index 3c51ada7..3024f243 100644 --- a/sickbeard/notifiers/pushover.py +++ b/sickbeard/notifiers/pushover.py @@ -45,11 +45,11 @@ class PushoverNotifier: returns: True if the message succeeded, False otherwise """ - if not userKey: + if userKey == None: userKey = sickbeard.PUSHOVER_USERKEY - if not apiKey: - apiKey = sickbeard.PUSHOVER_APIKEY or API_KEY + if apiKey == None: + apiKey = sickbeard.PUSHOVER_APIKEY logger.log("Pushover API KEY in use: " + apiKey, logger.DEBUG)