Address type checks

This commit is contained in:
Lonami Exo 2023-09-13 19:39:01 +02:00
parent b62327308b
commit 5376905e3d
2 changed files with 2 additions and 1 deletions

View File

@ -1,3 +1,4 @@
# type: ignore
from docutils import nodes, utils
from docutils.parsers.rst.roles import set_classes

View File

@ -247,7 +247,7 @@ class Sender:
if isinstance(ret, bytes):
assert len(ret) >= 4
elif isinstance(ret, RpcError):
ret.caused_by = struct.unpack_from("<I", req.body)[0]
ret._caused_by = struct.unpack_from("<I", req.body)[0]
raise ret
elif isinstance(ret, BadMessage):
# TODO test that we resend the request