mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-03 13:14:31 +03:00
Address type checks
This commit is contained in:
parent
b62327308b
commit
5376905e3d
|
@ -1,3 +1,4 @@
|
|||
# type: ignore
|
||||
from docutils import nodes, utils
|
||||
from docutils.parsers.rst.roles import set_classes
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user