From 3cee840388c9affd977e997f8f7a9d3ff80fc586 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Jun 29 2017 20:12:02 +0000 Subject: handle task fault results in download-logs Fixes #423 https://pagure.io/koji/issue/423 --- diff --git a/cli/koji b/cli/koji index fea7448..c67830a 100755 --- a/cli/koji +++ b/cli/koji @@ -6889,7 +6889,7 @@ def anon_handle_download_logs(options, session, args): # with current code, failed task results should always be faults, # but that could change in the future content = pprint.pformat(result) - except koji.GenericError: + except (xmlrpclib.Fault, koji.GenericError): etype, e = sys.exc_info()[:2] content = ''.join(traceback.format_exception_only(etype, e)) full_filename = os.path.normpath(os.path.join(task_log_dir, FAIL_LOG))