From 246c265a0dd4918c91b83e63864f01b2dafcdb36 Mon Sep 17 00:00:00 2001 From: Jon Turney Date: Tue, 7 Nov 2023 14:56:55 +0000 Subject: [PATCH] Don't raise unhandled exception if fetching artiacts fails --- gh.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/gh.py b/gh.py index 64db916..f81204e 100644 --- a/gh.py +++ b/gh.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import json +import logging import os import shutil import tempfile @@ -22,8 +23,9 @@ def examine_run_artifacts(wfr_id, u): response = e status = response.getcode() + logging.info("artifacts REST API status %s" % status) if status != 200: - raise Exception(str(status)) + return False u.artifacts = {} found_metadata = False