mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-20 05:13:21 -07:00
Cleanup unused modules and imports
* Ran code through PyFlakes
This commit is contained in:
parent
325fa19e46
commit
cb8a5504f6
290 changed files with 45 additions and 78157 deletions
|
@ -70,7 +70,6 @@ class HTTPHandler(object):
|
|||
else:
|
||||
handler = HTTPConnection(host=self.host, port=self.port, timeout=timeout)
|
||||
|
||||
token_string = ''
|
||||
if not no_token:
|
||||
if headers:
|
||||
headers.update({'X-Plex-Token': self.token})
|
||||
|
@ -86,10 +85,10 @@ class HTTPHandler(object):
|
|||
request_status = response.status
|
||||
request_content = response.read()
|
||||
content_type = response.getheader('content-type')
|
||||
except IOError, e:
|
||||
except IOError as e:
|
||||
logger.warn(u"Failed to access uri endpoint %s with error %s" % (uri, e))
|
||||
return None
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
logger.warn(u"Failed to access uri endpoint %s. Is your server maybe accepting SSL connections only? %s" % (uri, e))
|
||||
return None
|
||||
except:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue