diff --git a/invesalius/utils.py b/invesalius/utils.py index e9b65c4..198b5f4 100755 --- a/invesalius/utils.py +++ b/invesalius/utils.py @@ -398,7 +398,10 @@ def UpdateCheck(): 'random_id' : random_id } data = urllib.urlencode(data) req = urllib2.Request(url, data, headers) - response = urllib2.urlopen(req) + try: + response = urllib2.urlopen(req) + except: + return last = response.readline().rstrip() url = response.readline().rstrip() if (last!=const.INVESALIUS_VERSION): -- libgit2 0.21.2