mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-16 02:02:53 -07:00
PEP8: Test for membership should be 'not in'
This commit is contained in:
parent
38ed3350ac
commit
061a167b56
5 changed files with 11 additions and 11 deletions
|
@ -71,7 +71,7 @@ class autoProcessComics(object):
|
|||
if "Post Processing SUCCESSFUL" in line:
|
||||
success = True
|
||||
|
||||
if not r.status_code in [requests.codes.ok, requests.codes.created, requests.codes.accepted]:
|
||||
if r.status_code not in [requests.codes.ok, requests.codes.created, requests.codes.accepted]:
|
||||
logger.error("Server returned status %s" % (str(r.status_code)), section)
|
||||
return [1, "%s: Failed to post-process - Server returned status %s" % (section, str(r.status_code))]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue