From 42d1e875a538895a1bf6fc6dbd16f3279ee142bd Mon Sep 17 00:00:00 2001 From: Oleg A Date: Wed, 5 Dec 2018 01:28:21 +0300 Subject: [PATCH] removed skipped updates counter --- aiogram/utils/executor.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/aiogram/utils/executor.py b/aiogram/utils/executor.py index f4b2f777..b02bddf2 100644 --- a/aiogram/utils/executor.py +++ b/aiogram/utils/executor.py @@ -338,10 +338,8 @@ class Executor: async def _skip_updates(self): await self.dispatcher.reset_webhook(True) - count = await self.dispatcher.skip_updates() - if count: - log.warning(f"Skipped {count} updates.") - return count + await self.dispatcher.skip_updates() + log.warning(f"Updates are skipped successfully.") async def _welcome(self): user = await self.dispatcher.bot.me