Skip to content

Commit

Permalink
🐛 sleep after exception
Browse files Browse the repository at this point in the history
  • Loading branch information
j1g5awi committed Oct 18, 2024
1 parent 9a4cd6d commit 7987609
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions nonebot/adapters/telegram/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ async def poll(self, bot: Bot):
update_offset = updates[0].update_id
except Exception as e:
log("ERROR", f"Get updates for bot {bot.self_id} failed", e)
await asyncio.sleep(5)

def setup_polling(self, bot: Bot):
@self.on_ready
Expand Down

0 comments on commit 7987609

Please sign in to comment.