From a4babea835e38ff8d78e866099e68a184135f760 Mon Sep 17 00:00:00 2001 From: ehinrichs <54997013+ehinrichs@users.noreply.github.com> Date: Tue, 17 Dec 2024 11:18:55 -0700 Subject: [PATCH] Big fix for #95 bug fix for #95 --- pydfnworks/pydfnworks/general/dfnworks.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pydfnworks/pydfnworks/general/dfnworks.py b/pydfnworks/pydfnworks/general/dfnworks.py index a56dd301..87449b0c 100755 --- a/pydfnworks/pydfnworks/general/dfnworks.py +++ b/pydfnworks/pydfnworks/general/dfnworks.py @@ -229,7 +229,12 @@ def __init__(self, self.print_log("--> Creating DFN Object: Complete" ) def __del__(self): - self.print_log(f"--> {self.local_jobname} completed/exited " ) + try: + print(f"--> {self.local_jobname} completed/exited " ) + pass + except Exception: + print("--> Job completed/exited") + pass # elapsed = time() - self.start_time # time_sec = elapsed