Skip to content

Commit 845f649

Browse files
authored
undid exception bug change
1 parent cc74239 commit 845f649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

check50/assertions/runtime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def is_builtin_name(name):
135135
# Raise check50-specific/user-passed exceptions.
136136
if isinstance(msg_or_exc, str):
137137
raise Failure(msg_or_exc)
138-
elif isinstance(msg_or_exc, type) and issubclass(msg_or_exc, BaseException):
138+
elif isinstance(msg_or_exc, BaseException):
139139
raise msg_or_exc
140140
elif cond_type == 'eq' and left is not None and right is not None:
141141
help_msg = f"checked: {src}"

0 commit comments

Comments
 (0)