hotfix/processresult bug

This commit is contained in:
TheHolyRoger 2019-01-11 14:38:20 +00:00 committed by GitHub
parent f9f3fafb1b
commit e89bbcf9be
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