2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-08-29 13:27:47 +00:00

Update exception message

This commit is contained in:
Dan 2022-12-26 20:11:58 +01:00
parent 916be08116
commit 235dde2251

View File

@ -307,7 +307,7 @@ class Session:
result = self.results.pop(msg_id).value
if result is None:
raise TimeoutError("Response timed out")
raise TimeoutError("Request timed out")
if isinstance(result, raw.types.RpcError):
if isinstance(data, (raw.functions.InvokeWithoutUpdates, raw.functions.InvokeWithTakeout)):