Skip to content

Commit

Permalink
no archiving if yaml not found
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Nov 4, 2024
1 parent 4e65d0b commit 7165e16
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/mk_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,7 +305,11 @@ def get_qagrade(rc, debug=False):
fn = "../../../../dirzip/%s_lmtmetadata.yaml" % (o)
# @todo if not found, exit with -1
print("YAML Reading", fn)
fp = open(fn)
try:
fp = open(fn)
except:
os.system("pwd")
sys.exit(1)
if True:
# native yaml
y = yaml.safe_load(fp)
Expand Down

0 comments on commit 7165e16

Please sign in to comment.