Fix .tgread_object not seeking back on TypeNotFoundError

This commit is contained in:
Lonami Exo 2017-10-12 18:52:04 +02:00
parent 59c61cab2f
commit 6242cc8159

View File

@ -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)