From b39786e81ae4153743998439459446e6bc7f507e Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Sun, 27 May 2018 21:42:26 +0300 Subject: [PATCH] Fix crashing of polling process. --- aiogram/dispatcher/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/aiogram/dispatcher/__init__.py b/aiogram/dispatcher/__init__.py index edd09667..3cea91d8 100644 --- a/aiogram/dispatcher/__init__.py +++ b/aiogram/dispatcher/__init__.py @@ -229,7 +229,7 @@ class Dispatcher: while self._polling: try: updates = await self.bot.get_updates(limit=limit, offset=offset, timeout=timeout) - except NetworkError: + except: log.exception('Cause exception while getting updates.') await asyncio.sleep(15) continue