Commit 72e2da9244f2271666f201258704b5470f92ae4c
1 parent
74378247
Exists in
master
and in
65 other branches
FIX: update fix
Showing
1 changed file
with
4 additions
and
1 deletions
Show diff stats
invesalius/utils.py
| ... | ... | @@ -398,7 +398,10 @@ def UpdateCheck(): |
| 398 | 398 | 'random_id' : random_id } |
| 399 | 399 | data = urllib.urlencode(data) |
| 400 | 400 | req = urllib2.Request(url, data, headers) |
| 401 | - response = urllib2.urlopen(req) | |
| 401 | + try: | |
| 402 | + response = urllib2.urlopen(req) | |
| 403 | + except: | |
| 404 | + return | |
| 402 | 405 | last = response.readline().rstrip() |
| 403 | 406 | url = response.readline().rstrip() |
| 404 | 407 | if (last!=const.INVESALIUS_VERSION): | ... | ... |