PEP8: Fix formatting

* Remove redundant backslash between brackets
* Fix multiple statements on one line
* Fix missing/excess whitespace
* Fix comments not starting with a single `#` and a space
* Convert tabs to spaces
This commit is contained in:
Labrys 2016-05-31 11:59:25 -04:00
parent 0a1fe84306
commit 38ed3350ac
5 changed files with 97 additions and 95 deletions

View file

@ -66,8 +66,10 @@ class autoProcessComics(object):
logger.error("Unable to open URL", section)
return [1, "%s: Failed to post-process - Unable to connect to %s" % (section, section)]
for line in r.iter_lines():
if line: logger.postprocess("%s" % (line), section)
if "Post Processing SUCCESSFUL" in line: success = True
if line:
logger.postprocess("%s" % (line), section)
if "Post Processing SUCCESSFUL" in line:
success = True
if not r.status_code in [requests.codes.ok, requests.codes.created, requests.codes.accepted]:
logger.error("Server returned status %s" % (str(r.status_code)), section)

View file

@ -56,7 +56,8 @@ class autoProcessMovie(object):
id = result[section]['_id']
results[id] = result[section]
return results
except:pass
except:
pass
# Gather release info and proceed with trying to narrow results to one release choice

View file

@ -66,7 +66,6 @@ class autoProcessMusic(object):
else:
protocol = "http://"
url = "%s%s:%s%s/api" % (protocol, host, port, web_root)
if not server_responding(url):
logger.error("Server did not respond. Exiting", section)