From 38ce09f612f46850a8f36101efe7d4eaba413668 Mon Sep 17 00:00:00 2001 From: Gabben <43146729+gabbhack@users.noreply.github.com> Date: Wed, 8 Apr 2020 20:32:16 +0500 Subject: [PATCH] Fix AttributeError --- aiogram/dispatcher/webhook.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/dispatcher/webhook.py b/aiogram/dispatcher/webhook.py index a717b486..ed2ebf99 100644 --- a/aiogram/dispatcher/webhook.py +++ b/aiogram/dispatcher/webhook.py @@ -182,7 +182,7 @@ class WebhookRequestHandler(web.View): try: try: await waiter - except asyncio.futures.CancelledError: + except asyncio.CancelledError: fut.remove_done_callback(cb) fut.cancel() raise