Exception cleanup
This commit is contained in:
@@ -29,7 +29,7 @@ class PlexClientHTTP(PlexClientProtocol):
|
||||
|
||||
try:
|
||||
self.plex.urlopen(url, headers = headers, timeout = 3, show_error = False)
|
||||
except Exception, err:
|
||||
except Exception as err:
|
||||
log.error("Couldn't sent command to Plex: %s", err)
|
||||
return False
|
||||
|
||||
@@ -68,7 +68,7 @@ class PlexClientJSON(PlexClientProtocol):
|
||||
|
||||
try:
|
||||
requests.post(url, headers = headers, timeout = 3, data = json.dumps(request))
|
||||
except Exception, err:
|
||||
except Exception as err:
|
||||
log.error("Couldn't sent command to Plex: %s", err)
|
||||
return False
|
||||
|
||||
|
||||
@@ -79,7 +79,7 @@ class Pushbullet(Notification):
|
||||
data = self.urlopen(self.url % method, headers = headers, data = kwargs)
|
||||
return json.loads(data)
|
||||
|
||||
except Exception, ex:
|
||||
except Exception as ex:
|
||||
log.error('Pushbullet request failed')
|
||||
log.debug(ex)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user