From f6bc80bc6b2a64bd42658877ad3fec4464593b37 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Thu, 8 Nov 2018 10:08:41 +0100 Subject: [PATCH] Fix cancellation of custom conversation events from d474458 --- telethon/tl/custom/conversation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/tl/custom/conversation.py b/telethon/tl/custom/conversation.py index 745f7234..eeadd108 100644 --- a/telethon/tl/custom/conversation.py +++ b/telethon/tl/custom/conversation.py @@ -372,7 +372,7 @@ class Conversation(ChatGetter): else: pending.cancel() - for _, fut, _ in self._custom: + for _, fut in self._custom: if exception: fut.set_exception(exception) else: