mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-18 02:56:39 +00: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
|
self._reading = False
|
||||||
else:
|
else:
|
||||||
await self._step_done.wait()
|
await self._step_done.wait()
|
||||||
except Exception:
|
except Exception as e:
|
||||||
self._
|
self._on_error(e)
|
||||||
|
|
||||||
def pop_updates(self) -> list[Updates]:
|
def pop_updates(self) -> list[Updates]:
|
||||||
updates = self._updates[:]
|
updates = self._updates[:]
|
||||||
|
Loading…
Reference in New Issue
Block a user