mirror of
https://github.com/aiogram/aiogram.git
synced 2026-04-08 16:37:47 +00:00
Fix crashing of polling process.
This commit is contained in:
parent
2281afe2ca
commit
b39786e81a
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue