mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
Fix .tgread_object not seeking back on TypeNotFoundError
This commit is contained in:
parent
59c61cab2f
commit
6242cc8159
|
@ -129,6 +129,7 @@ class BinaryReader:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
# If there was still no luck, give up
|
# If there was still no luck, give up
|
||||||
|
self.seek(-4) # Go back
|
||||||
raise TypeNotFoundError(constructor_id)
|
raise TypeNotFoundError(constructor_id)
|
||||||
|
|
||||||
return clazz.from_reader(self)
|
return clazz.from_reader(self)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user