From 72e2da9244f2271666f201258704b5470f92ae4c Mon Sep 17 00:00:00 2001 From: ruppert Date: Fri, 21 Sep 2012 20:23:22 +0000 Subject: [PATCH] FIX: update fix --- invesalius/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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