aboutsummaryrefslogtreecommitdiff
path: root/Utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'Utils.py')
-rw-r--r--Utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Utils.py b/Utils.py
index 28c8b466..03b7bd31 100644
--- a/Utils.py
+++ b/Utils.py
@@ -52,7 +52,7 @@ def get_url(url, **kwargs):
request.method = method
try:
- response = urllib.request.urlopen(request)
+ response = urllib.request.urlopen(request, timeout=5)
except urllib.error.HTTPError as e:
traceback.print_exc()
if kwargs.get("code"):