Commit 80b4c856f61b4795c37b580e0e0181ac99ce3177
1 parent
73a81e6b
Exists in
master
and in
35 other branches
Added a timeout when verifies if there is a new version of invesalius
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
invesalius/utils.py
... | ... | @@ -410,7 +410,7 @@ def UpdateCheck(): |
410 | 410 | data = urllib.urlencode(data) |
411 | 411 | req = urllib2.Request(url, data, headers) |
412 | 412 | try: |
413 | - response = urllib2.urlopen(req) | |
413 | + response = urllib2.urlopen(req, timeout=10) | |
414 | 414 | except: |
415 | 415 | return |
416 | 416 | last = response.readline().rstrip() | ... | ... |