From 7165e1617f98d33b255c593e023bafe73466b6b7 Mon Sep 17 00:00:00 2001 From: Peter Teuben Date: Mon, 4 Nov 2024 10:50:51 -0500 Subject: [PATCH] no archiving if yaml not found --- bin/mk_metadata.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/bin/mk_metadata.py b/bin/mk_metadata.py index d29be1f..a827256 100755 --- a/bin/mk_metadata.py +++ b/bin/mk_metadata.py @@ -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)