Refactor error message in Sender class for consistency and clarity

This commit is contained in:
Jahongir Qurbonov 2025-06-03 09:47:54 +05:00
parent e90d204287
commit ac611dbbd4
No known key found for this signature in database
GPG Key ID: 256976CED13D5F2D

View File

@ -422,7 +422,7 @@ class Sender:
self._process_deserialize_error(result)
else:
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: