Skip to content

Commit 2ad1d9c

Browse files
committed
Fix wrong excepted error
Closes #582
1 parent 79583a2 commit 2ad1d9c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pyrogram/raw/core/primitives/vector.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class Vector(bytes, TLObject):
3333
def _read(b: BytesIO) -> Union[int, Any]:
3434
try:
3535
return TLObject.read(b)
36-
except KeyError:
36+
except ValueError:
3737
b.seek(-4, 1)
3838
return Int.read(b)
3939

0 commit comments

Comments
 (0)