From f5e611e4d297f2960d86df5dcdc5924ea5cb2e10 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Sat, 4 May 2019 19:30:33 +0200 Subject: [PATCH] Fix SenderGetter was excepting the wrong type --- telethon/tl/custom/sendergetter.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/tl/custom/sendergetter.py b/telethon/tl/custom/sendergetter.py index f283247a..4195c225 100644 --- a/telethon/tl/custom/sendergetter.py +++ b/telethon/tl/custom/sendergetter.py @@ -59,7 +59,7 @@ class SenderGetter(abc.ABC): try: self._input_sender = \ self._client._entity_cache[self._sender_id] - except ValueError: + except KeyError: pass return self._input_sender