From 3f78f88c78e9831241d0361a79761c5353ddc42a Mon Sep 17 00:00:00 2001 From: Mark Rawson Date: Wed, 18 Jun 2014 21:50:48 +0100 Subject: [PATCH] Add logging for pushover message limit error (429) --- sickbeard/notifiers/pushover.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/sickbeard/notifiers/pushover.py b/sickbeard/notifiers/pushover.py index c9ea69f2..f2302975 100644 --- a/sickbeard/notifiers/pushover.py +++ b/sickbeard/notifiers/pushover.py @@ -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