From e4c1f4acc85c392bab99912c8dd887736b01c434 Mon Sep 17 00:00:00 2001 From: culnaen <54394508+culnaen@users.noreply.github.com> Date: Wed, 8 Apr 2020 18:30:12 +0300 Subject: [PATCH] fix --- 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