We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc74239 commit 845f649Copy full SHA for 845f649
check50/assertions/runtime.py
@@ -135,7 +135,7 @@ def is_builtin_name(name):
135
# Raise check50-specific/user-passed exceptions.
136
if isinstance(msg_or_exc, str):
137
raise Failure(msg_or_exc)
138
- elif isinstance(msg_or_exc, type) and issubclass(msg_or_exc, BaseException):
+ elif isinstance(msg_or_exc, BaseException):
139
raise msg_or_exc
140
elif cond_type == 'eq' and left is not None and right is not None:
141
help_msg = f"checked: {src}"
0 commit comments