From 340a766bba485aeea1296fcc6ddab953910e518a Mon Sep 17 00:00:00 2001 From: Tomas Groth Date: Fri, 13 Feb 2015 20:10:53 +0000 Subject: [PATCH] Change ConnectionException to ConnectionError. Fixes bug 1421561 Fixes: https://launchpad.net/bugs/1421561 --- openlp/core/ui/firsttimeform.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openlp/core/ui/firsttimeform.py b/openlp/core/ui/firsttimeform.py index 9c3b7bf09..3f3403d19 100644 --- a/openlp/core/ui/firsttimeform.py +++ b/openlp/core/ui/firsttimeform.py @@ -436,7 +436,7 @@ class FirstTimeForm(QtGui.QWizard, UiFirstTimeWizard, RegistryProperties): site = urllib.request.urlopen(url, timeout=CONNECTION_TIMEOUT) meta = site.info() return int(meta.get("Content-Length")) - except ConnectionException: + except ConnectionError: if retries > CONNECTION_RETRIES: raise else: