Making timeout when reporting an error shorter

This commit is contained in:
Lonami Exo 2017-09-25 12:00:09 +02:00
parent 493f5cec1f
commit edcd23f94c

View File

@ -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()