Handle exceptions in Sender class by invoking error handler

This commit is contained in:
Jahongir Qurbonov 2025-06-01 20:27:15 +05:00
parent 66e9b53791
commit bc43ae4718
No known key found for this signature in database
GPG Key ID: 256976CED13D5F2D

View File

@ -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[:]