From c59849156680a2be8ba948aafc88043a41bab244 Mon Sep 17 00:00:00 2001 From: Mike McLean Date: Jun 29 2017 20:12:02 +0000 Subject: PR#424 handle task fault results in download-logs Merges #424 https://pagure.io/koji/pull-request/424 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))