We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent af0712c commit 777bd80Copy full SHA for 777bd80
1 file changed
src/smda/common/ExceptionHandling.py
@@ -0,0 +1,13 @@
1
+NON_OPERATIONAL_EXCEPTION_TYPES = (
2
+ AssertionError,
3
+ ImportError,
4
+ MemoryError,
5
+ NameError,
6
+ ReferenceError,
7
+ SyntaxError,
8
+)
9
+
10
11
+def reraise_non_operational_exception(exception):
12
+ if isinstance(exception, NON_OPERATIONAL_EXCEPTION_TYPES):
13
+ raise
0 commit comments