mirror of
https://github.com/pyrogram/pyrogram
synced 2025-08-29 13:27:47 +00:00
Update exception message
This commit is contained in:
parent
916be08116
commit
235dde2251
@ -307,7 +307,7 @@ class Session:
|
|||||||
result = self.results.pop(msg_id).value
|
result = self.results.pop(msg_id).value
|
||||||
|
|
||||||
if result is None:
|
if result is None:
|
||||||
raise TimeoutError("Response timed out")
|
raise TimeoutError("Request timed out")
|
||||||
|
|
||||||
if isinstance(result, raw.types.RpcError):
|
if isinstance(result, raw.types.RpcError):
|
||||||
if isinstance(data, (raw.functions.InvokeWithoutUpdates, raw.functions.InvokeWithTakeout)):
|
if isinstance(data, (raw.functions.InvokeWithoutUpdates, raw.functions.InvokeWithTakeout)):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user