From 5426e0f727e8def96dd171339a54f25ede3feb71 Mon Sep 17 00:00:00 2001 From: Tommaso Tedeschi Date: Mon, 8 Jul 2024 12:14:47 +0200 Subject: [PATCH] Update handles.py --- handles.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/handles.py b/handles.py index aecd986..ca3f452 100644 --- a/handles.py +++ b/handles.py @@ -545,8 +545,7 @@ def SubmitHandler(): "PodJID": [] } - #try: - if True: + try: with open( InterLinkConfigInst["DataRootFolder"] + pod["metadata"]["name"] + "-" + pod["metadata"]["uid"] + ".jid", @@ -556,8 +555,7 @@ def SubmitHandler(): resp["PodUID"] = pod["metadata"]["uid"] resp["PodJID"] = out_jid return json.dumps(resp), 200 - #except Exception as e: - else: + except Exception as e: logging.error(f"Unable to read JID from file:{e}") return "Something went wrong in job submission", 500