Fix wrong excepted error

Closes #582
This commit is contained in:
Dan 2021-01-10 16:46:16 +01:00
parent 79583a29fc
commit 2ad1d9cbc8

View File

@ -33,7 +33,7 @@ class Vector(bytes, TLObject):
def _read(b: BytesIO) -> Union[int, Any]: def _read(b: BytesIO) -> Union[int, Any]:
try: try:
return TLObject.read(b) return TLObject.read(b)
except KeyError: except ValueError:
b.seek(-4, 1) b.seek(-4, 1)
return Int.read(b) return Int.read(b)