From dc5570206b8f2587a7e2ba8fbc097dd7049821d6 Mon Sep 17 00:00:00 2001 From: Andrew Davison Date: Wed, 24 Jan 2024 17:13:23 +0100 Subject: [PATCH] try to get more complete error information --- nmpi/nmpi_saga.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/nmpi/nmpi_saga.py b/nmpi/nmpi_saga.py index 29c9a14..dc47d90 100644 --- a/nmpi/nmpi_saga.py +++ b/nmpi/nmpi_saga.py @@ -27,14 +27,17 @@ import time import mimetypes import hashlib -import radical.saga as saga import logging +import codecs +import traceback + +import radical.saga as saga import sh from sh import git, unzip, tar, curl -import nmpi -import codecs from requests.auth import AuthBase +import nmpi + DEFAULT_SCRIPT_NAME = "run.py {system}" DEFAULT_PYNN_VERSION = "0.11" @@ -542,7 +545,7 @@ def main(): for job in jobs: print(f"{job['id']} ({job['user_id']}): {job['status']}") except Exception as err: - print(err) + traceback.print_exception(err) return 1 else: return 0