Change ConnectionException to ConnectionError. Fixes bug 1421561

Fixes: https://launchpad.net/bugs/1421561
This commit is contained in:
Tomas Groth 2015-02-13 20:10:53 +00:00
parent 5795e386d4
commit 340a766bba

View File

@ -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: