SyneRBI / PETRIC

PET Image Reconstruction Challenge 2024
https://www.ccpsynerbi.ac.uk/events/petric/
2 stars 2 forks source link

exception handling in petric.main #37

Closed KrisThielemans closed 1 week ago

KrisThielemans commented 1 week ago

AssertionError is not caught, nor possibly other exceptions, so use

-except Exception as exc:
-    print(exc)
+import traceback
+except (AssertionError, Exception):
+    traceback.print_exc()