From c45b39be59eaac7b77477b1dd3087ea02af2369f Mon Sep 17 00:00:00 2001 From: Casper da Costa-Luis Date: Fri, 5 Jul 2024 09:46:33 +0100 Subject: [PATCH] remove redundant exception types --- petric.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/petric.py b/petric.py index 0f189e9..c282e80 100755 --- a/petric.py +++ b/petric.py @@ -198,7 +198,7 @@ def get_data(srcdir=".", outdir=OUTDIR, sirf_verbosity=0): algo = Submission(data) try: algo.run(np.inf, callbacks=metrics + submission_callbacks) - except (AssertionError, Exception): + except Exception: print_exc(limit=2) finally: del algo