Skip to content

Commit

Permalink
Don't raise unhandled exception if fetching artiacts fails
Browse files Browse the repository at this point in the history
  • Loading branch information
jon-turney committed Nov 7, 2023
1 parent 2e4fae6 commit 246c265
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gh.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#!/usr/bin/env python3

import json
import logging
import os
import shutil
import tempfile
Expand All @@ -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
Expand Down

0 comments on commit 246c265

Please sign in to comment.