1
0
mirror of https://github.com/moparisthebest/SickRage synced 2024-08-13 16:53:54 -04:00

Bugfix - fix issue with Pushover test notifications, false-positive if api/user keys removed in UI but not yet saved

This commit is contained in:
Mark Rawson 2014-06-19 00:13:16 +01:00
parent abb7c78dac
commit e50ce507e5

View File

@ -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)