Skip to content

Commit

Permalink
fix TimeOut error
Browse files Browse the repository at this point in the history
  • Loading branch information
z44d committed Jan 13, 2025
1 parent 2ca9a58 commit 91c728a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tgram/client/dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ async def run_for_updates(self: "tgram.TgBot", skip_updates: bool = None) -> Non
self.updates_queue.put_nowait(update)
except (asyncio.CancelledError, KeyboardInterrupt):
self.is_running = False
except tgram.StopPropagation:
pass
except (tgram.StopPropagation, asyncio.TimeoutError):
continue
except Exception as e:
logger.exception(e)

Expand Down

0 comments on commit 91c728a

Please sign in to comment.