mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 17:36:34 +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
|
||||
|
||||
# If there was still no luck, give up
|
||||
self.seek(-4) # Go back
|
||||
raise TypeNotFoundError(constructor_id)
|
||||
|
||||
return clazz.from_reader(self)
|
||||
|
|
Loading…
Reference in New Issue
Block a user