mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-07-14 17:22: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
|
@ -78,7 +78,7 @@ class autoProcessGames(object):
|
|||
logger.error("No library specified to move files to. Please edit your configuration.", section)
|
||||
return [1, "%s: Failed to post-process - No library defined in %s" % (section, section)]
|
||||
|
||||
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))]
|
||||
elif result['success']:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue