Skip to content

Commit 777bd80

Browse files
committed
fix(core): include non-operational exception helper
1 parent af0712c commit 777bd80

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)