Commit c122aeb39f3baf4087ecbff639ad7b78c8a159e9
Committed by
Thiago Franco de Moraes
1 parent
298a03ef
Exists in
beta4
and in
1 other branch
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): | ... | ... |