mirror of
https://github.com/clinton-hall/nzbToMedia.git
synced 2025-08-19 21:03:14 -07:00
Fix flake8 E117 over-indented
This commit is contained in:
parent
a8d1cc4fe9
commit
90090d7e02
2 changed files with 18 additions and 18 deletions
|
@ -373,22 +373,22 @@ def process(section, dir_name, input_name=None, status=0, client_agent='manual',
|
||||||
except Exception:
|
except Exception:
|
||||||
pass
|
pass
|
||||||
elif scan_id:
|
elif scan_id:
|
||||||
url = '{0}/{1}'.format(base_url, scan_id)
|
url = '{0}/{1}'.format(base_url, scan_id)
|
||||||
command_status = command_complete(url, params, headers, section)
|
command_status = command_complete(url, params, headers, section)
|
||||||
if command_status:
|
if command_status:
|
||||||
logger.debug('The Scan command return status: {0}'.format(command_status), section)
|
logger.debug('The Scan command return status: {0}'.format(command_status), section)
|
||||||
if command_status in ['completed']:
|
if command_status in ['completed']:
|
||||||
logger.debug('The Scan command has completed successfully. Renaming was successful.', section)
|
logger.debug('The Scan command has completed successfully. Renaming was successful.', section)
|
||||||
return ProcessResult(
|
return ProcessResult(
|
||||||
message='{0}: Successfully post-processed {1}'.format(section, input_name),
|
message='{0}: Successfully post-processed {1}'.format(section, input_name),
|
||||||
status_code=0,
|
status_code=0,
|
||||||
)
|
)
|
||||||
elif command_status in ['failed']:
|
elif command_status in ['failed']:
|
||||||
logger.debug('The Scan command has failed. Renaming was not successful.', section)
|
logger.debug('The Scan command has failed. Renaming was not successful.', section)
|
||||||
# return ProcessResult(
|
# return ProcessResult(
|
||||||
# message='{0}: Failed to post-process {1}'.format(section, input_name),
|
# message='{0}: Failed to post-process {1}'.format(section, input_name),
|
||||||
# status_code=1,
|
# status_code=1,
|
||||||
# )
|
# )
|
||||||
|
|
||||||
if not os.path.isdir(dir_name):
|
if not os.path.isdir(dir_name):
|
||||||
logger.postprocess('SUCCESS: Input Directory [{0}] has been processed and removed'.format(
|
logger.postprocess('SUCCESS: Input Directory [{0}] has been processed and removed'.format(
|
||||||
|
|
|
@ -199,8 +199,8 @@ class GitUpdateManager(UpdateManager):
|
||||||
logger.log(u'{cmd} : returned successful'.format(cmd=cmd), logger.DEBUG)
|
logger.log(u'{cmd} : returned successful'.format(cmd=cmd), logger.DEBUG)
|
||||||
exit_status = 0
|
exit_status = 0
|
||||||
elif core.LOG_GIT and exit_status in (1, 128):
|
elif core.LOG_GIT and exit_status in (1, 128):
|
||||||
logger.log(u'{cmd} returned : {output}'.format
|
logger.log(u'{cmd} returned : {output}'.format
|
||||||
(cmd=cmd, output=output), logger.DEBUG)
|
(cmd=cmd, output=output), logger.DEBUG)
|
||||||
else:
|
else:
|
||||||
if core.LOG_GIT:
|
if core.LOG_GIT:
|
||||||
logger.log(u'{cmd} returned : {output}, treat as error for now'.format
|
logger.log(u'{cmd} returned : {output}, treat as error for now'.format
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue