diff --git a/sickbeard/notifiers/prowl.py b/sickbeard/notifiers/prowl.py index 9ef85c54..54180e4e 100644 --- a/sickbeard/notifiers/prowl.py +++ b/sickbeard/notifiers/prowl.py @@ -16,6 +16,7 @@ # You should have received a copy of the GNU General Public License # along with SickRage. If not, see . +import socket from httplib import HTTPSConnection, HTTPException from urllib import urlencode @@ -87,7 +88,7 @@ class ProwlNotifier: "/publicapi/add", headers={'Content-type': "application/x-www-form-urlencoded"}, body=urlencode(data)) - except (SSLError, HTTPException): + except (SSLError, HTTPException, socket.error): logger.log(u"Prowl notification failed.", logger.ERROR) return False response = http_handler.getresponse() diff --git a/sickbeard/notifiers/pushalot.py b/sickbeard/notifiers/pushalot.py index 40515564..32ed2b6e 100644 --- a/sickbeard/notifiers/pushalot.py +++ b/sickbeard/notifiers/pushalot.py @@ -17,6 +17,7 @@ # You should have received a copy of the GNU General Public License # along with SickRage. If not, see . +import socket from httplib import HTTPSConnection, HTTPException from urllib import urlencode from ssl import SSLError @@ -77,7 +78,7 @@ class PushalotNotifier: "/api/sendmessage", headers={'Content-type': "application/x-www-form-urlencoded"}, body=urlencode(data)) - except (SSLError, HTTPException): + except (SSLError, HTTPException, socket.error): logger.log(u"Pushalot notification failed.", logger.ERROR) return False response = http_handler.getresponse() diff --git a/sickbeard/notifiers/pushbullet.py b/sickbeard/notifiers/pushbullet.py index 274d9715..fedf3fa2 100644 --- a/sickbeard/notifiers/pushbullet.py +++ b/sickbeard/notifiers/pushbullet.py @@ -17,7 +17,7 @@ # You should have received a copy of the GNU General Public License # along with SickRage. If not, see . - +import socket import base64 from httplib import HTTPSConnection, HTTPException import json @@ -86,7 +86,7 @@ class PushbulletNotifier: try: logger.log(u"Testing Pushbullet authentication and retrieving the device list.", logger.DEBUG) http_handler.request(method, uri, None, headers={'Authorization': 'Basic %s:' % authString}) - except (SSLError, HTTPException): + except (SSLError, HTTPException, socket.error): logger.log(u"Pushbullet notification failed.", logger.ERROR) return False else: @@ -101,7 +101,7 @@ class PushbulletNotifier: http_handler.request(method, uri, body=data, headers={'Content-Type': 'application/json', 'Authorization': 'Basic %s' % authString}) pass - except (SSLError, HTTPException): + except (SSLError, HTTPException, socket.error): return False response = http_handler.getresponse()