From 5aff7f7d35b4dc965c054015d924d42fa049217b Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sat, 15 Sep 2018 19:37:47 +0300 Subject: [PATCH] Fix logging middleware. dispatcher removed from args --- aiogram/contrib/middlewares/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/contrib/middlewares/logging.py b/aiogram/contrib/middlewares/logging.py index ff870b2a..ca6b628f 100644 --- a/aiogram/contrib/middlewares/logging.py +++ b/aiogram/contrib/middlewares/logging.py @@ -135,7 +135,7 @@ class LoggingMiddleware(BaseMiddleware): f"pre-checkout query [ID:{pre_checkout_query.id}] " f"from user [ID:{pre_checkout_query.from_user.id}]") - async def on_pre_process_error(self, dispatcher, update, error, data: dict): + async def on_pre_process_error(self, update, error, data: dict): timeout = self.check_timeout(update) if timeout > 0: self.logger.info(f"Process update [ID:{update.update_id}]: [failed] (in {timeout} ms)")