Exception cleanup

This commit is contained in:
Ruud
2014-01-20 23:27:58 +01:00
parent 2c43b9a926
commit bb3faaf2cd
8 changed files with 23 additions and 23 deletions
@@ -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