From bc9714f4c8b98037f2588b337d1ca4cfd87292e7 Mon Sep 17 00:00:00 2001 From: Wilmer Uruchi Ticona Date: Tue, 15 Dec 2020 14:26:54 +0100 Subject: [PATCH] Somehow traceback was causing a weird bug. Fixed. --- bin/autosubmit | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/autosubmit b/bin/autosubmit index 00dc40d9b..8605c832e 100755 --- a/bin/autosubmit +++ b/bin/autosubmit @@ -38,16 +38,15 @@ def main(): Autosubmit.parse_args() os._exit(0) except AutosubmitCritical as e: - # If an exception reaches this point, print tracebak on debug - Log.debug(traceback.format_exc()) + # If an exception reaches this point, print traceback on debug if e.trace is not None: Log.error("Trace: {0}", e.trace) Log.critical("{1} [eCode={0}]", e.code, e.message) Log.info("More info at https://autosubmit.readthedocs.io/en/latest/faq.html") + Log.debug(traceback.format_exc()) os._exit(1) except Exception as e: - # If an exception reaches this point, print tracebak on debug - Log.debug(traceback.format_exc()) + # If an exception reaches this point, print traceback on debug Log.error("Trace: {0}", str(e)) if "temporarily unavailable" in str(e): Log.critical( @@ -55,6 +54,7 @@ def main(): else: Log.critical( "Unhandled error: If you see this message, please report it in Autosubmit's GitLab project") + Log.debug(traceback.format_exc()) os._exit(1) -- GitLab