Fix crashing of polling process.

This commit is contained in:
Alex Root Junior 2018-05-27 21:42:26 +03:00
parent 2281afe2ca
commit b39786e81a

View file

@ -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