Skip to content

Commit 8ec7ec1

Browse files
committed
Fix mypy warning
1 parent dfb1e94 commit 8ec7ec1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/dispatch/proto.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -331,6 +331,7 @@ def to_exception(self) -> Exception:
331331

332332
g = globals()
333333
try:
334+
assert isinstance(self.type, str)
334335
cls = g[self.type]
335336
assert issubclass(cls, Exception)
336337
except (KeyError, AssertionError):

0 commit comments

Comments
 (0)