From 2ad1d9cbc8e41041aa89c1bdc85df6f8a7a93cc0 Mon Sep 17 00:00:00 2001 From: Dan <14043624+delivrance@users.noreply.github.com> Date: Sun, 10 Jan 2021 16:46:16 +0100 Subject: [PATCH] Fix wrong excepted error Closes #582 --- pyrogram/raw/core/primitives/vector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyrogram/raw/core/primitives/vector.py b/pyrogram/raw/core/primitives/vector.py index a2be7b4f..5b2f9ba6 100644 --- a/pyrogram/raw/core/primitives/vector.py +++ b/pyrogram/raw/core/primitives/vector.py @@ -33,7 +33,7 @@ class Vector(bytes, TLObject): def _read(b: BytesIO) -> Union[int, Any]: try: return TLObject.read(b) - except KeyError: + except ValueError: b.seek(-4, 1) return Int.read(b)