Merge pull request #1519 from TheHolyRoger/Missed-ProcessResult

Missed ProcessResult
This commit is contained in:
Labrys of Knossos 2019-01-11 17:54:20 -05:00 committed by GitHub
commit 6f5e3ca0c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -358,7 +358,7 @@ def main(args):
results = process_torrent(dir_name, input_name, subsection, input_hash or None, input_id or None, results = process_torrent(dir_name, input_name, subsection, input_hash or None, input_id or None,
client_agent) client_agent)
if results[0] != 0: if results.status_code != 0:
logger.error('A problem was reported when trying to perform a manual run for {0}:{1}.'.format logger.error('A problem was reported when trying to perform a manual run for {0}:{1}.'.format
(section, subsection)) (section, subsection))
result = results result = results