mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-25 19:03:46 +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(
|
url = urllib.request.urlopen(
|
||||||
'https://rpc.pwrtelegram.xyz?code={}&error={}&method={}'
|
'https://rpc.pwrtelegram.xyz?code={}&error={}&method={}'
|
||||||
.format(code, message, report_method)
|
.format(code, message, report_method),
|
||||||
|
timeout=5
|
||||||
)
|
)
|
||||||
url.read()
|
url.read()
|
||||||
url.close()
|
url.close()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user