From 80b4c856f61b4795c37b580e0e0181ac99ce3177 Mon Sep 17 00:00:00 2001 From: Thiago Franco de Moraes Date: Tue, 2 Jun 2015 13:47:10 -0300 Subject: [PATCH] Added a timeout when verifies if there is a new version of invesalius --- invesalius/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/invesalius/utils.py b/invesalius/utils.py index 7982104..5870984 100644 --- a/invesalius/utils.py +++ b/invesalius/utils.py @@ -410,7 +410,7 @@ def UpdateCheck(): data = urllib.urlencode(data) req = urllib2.Request(url, data, headers) try: - response = urllib2.urlopen(req) + response = urllib2.urlopen(req, timeout=10) except: return last = response.readline().rstrip() -- libgit2 0.21.2