mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-06-20 12:06:37 +00:00
Refactor error message in Sender class for consistency and clarity
This commit is contained in:
parent
e90d204287
commit
ac611dbbd4
@ -422,7 +422,7 @@ class Sender:
|
|||||||
self._process_deserialize_error(result)
|
self._process_deserialize_error(result)
|
||||||
else:
|
else:
|
||||||
raise RuntimeError(
|
raise RuntimeError(
|
||||||
f"Unexpected result type {type(result).__name__!r}: {result}"
|
f"unexpected result type {type(result).__name__}: {result}"
|
||||||
)
|
)
|
||||||
|
|
||||||
def _process_update(self, update: bytes | bytearray | memoryview) -> None:
|
def _process_update(self, update: bytes | bytearray | memoryview) -> None:
|
||||||
|
Loading…
Reference in New Issue
Block a user