mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-09 16:10:51 +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 import nodes, utils
|
||||||
from docutils.parsers.rst.roles import set_classes
|
from docutils.parsers.rst.roles import set_classes
|
||||||
|
|
||||||
|
|
|
@ -247,7 +247,7 @@ class Sender:
|
||||||
if isinstance(ret, bytes):
|
if isinstance(ret, bytes):
|
||||||
assert len(ret) >= 4
|
assert len(ret) >= 4
|
||||||
elif isinstance(ret, RpcError):
|
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
|
raise ret
|
||||||
elif isinstance(ret, BadMessage):
|
elif isinstance(ret, BadMessage):
|
||||||
# TODO test that we resend the request
|
# TODO test that we resend the request
|
||||||
|
|
Loading…
Reference in New Issue
Block a user