Skip to content
This repository was archived by the owner on Oct 1, 2024. It is now read-only.

Commit c911658

Browse files
committed
Fix mypy error
1 parent 57ef2e1 commit c911658

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ward/expect.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __exit__(
3838
exc_val: Optional[BaseException],
3939
exc_tb: Optional[types.TracebackType],
4040
) -> bool:
41-
if not issubclass(exc_type, self.expected_ex_type):
41+
if exc_type and not issubclass(exc_type, self.expected_ex_type):
4242
raise AssertionError(
4343
f"Expected exception {self.expected_ex_type}, but {exc_type} was raised instead."
4444
)

0 commit comments

Comments
 (0)