Commit c122aeb39f3baf4087ecbff639ad7b78c8a159e9

Authored by ruppert
Committed by Thiago Franco de Moraes
1 parent 298a03ef
Exists in beta4 and in 1 other branch beta3

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,7 +398,10 @@ def UpdateCheck():
398 'random_id' : random_id } 398 'random_id' : random_id }
399 data = urllib.urlencode(data) 399 data = urllib.urlencode(data)
400 req = urllib2.Request(url, data, headers) 400 req = urllib2.Request(url, data, headers)
401 - response = urllib2.urlopen(req) 401 + try:
  402 + response = urllib2.urlopen(req)
  403 + except:
  404 + return
402 last = response.readline().rstrip() 405 last = response.readline().rstrip()
403 url = response.readline().rstrip() 406 url = response.readline().rstrip()
404 if (last!=const.INVESALIUS_VERSION): 407 if (last!=const.INVESALIUS_VERSION):