mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-22 09:26:37 +03:00
Making timeout when reporting an error shorter
This commit is contained in:
parent
493f5cec1f
commit
edcd23f94c
|
@ -27,7 +27,8 @@ def report_error(code, message, report_method):
|
|||
)
|
||||
url = urllib.request.urlopen(
|
||||
'https://rpc.pwrtelegram.xyz?code={}&error={}&method={}'
|
||||
.format(code, message, report_method)
|
||||
.format(code, message, report_method),
|
||||
timeout=5
|
||||
)
|
||||
url.read()
|
||||
url.close()
|
||||
|
|
Loading…
Reference in New Issue
Block a user