mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-07-14 01:52:21 +03:00
Handle exceptions in Sender class by invoking error handler
This commit is contained in:
parent
66e9b53791
commit
bc43ae4718
|
@ -250,8 +250,8 @@ class Sender:
|
|||
self._reading = False
|
||||
else:
|
||||
await self._step_done.wait()
|
||||
except Exception:
|
||||
self._
|
||||
except Exception as e:
|
||||
self._on_error(e)
|
||||
|
||||
def pop_updates(self) -> list[Updates]:
|
||||
updates = self._updates[:]
|
||||
|
|
Loading…
Reference in New Issue
Block a user