mirror of
https://github.com/SickGear/SickGear.git
synced 2024-12-01 08:53:37 +00:00
Add logging for pushover message limit error (429)
This commit is contained in:
parent
03c9b303e0
commit
3f78f88c78
1 changed files with 5 additions and 0 deletions
|
@ -103,6 +103,11 @@ class PushoverNotifier:
|
|||
logger.log("Wrong data sent to pushover", logger.ERROR)
|
||||
return False
|
||||
|
||||
# If you receive a HTTP status code of 429, it is because the message limit has been reached (free limit is 7,500)
|
||||
elif e.code == 429:
|
||||
logger.log("Pushover API message limit reached - try a different API key", logger.ERROR)
|
||||
return False
|
||||
|
||||
logger.log("Pushover notification successful.", logger.MESSAGE)
|
||||
return True
|
||||
|
||||
|
|
Loading…
Reference in a new issue