forked from openlp/openlp
Change ConnectionException to ConnectionError. Fixes bug 1421561
Fixes: https://launchpad.net/bugs/1421561
This commit is contained in:
parent
5795e386d4
commit
340a766bba
@ -436,7 +436,7 @@ class FirstTimeForm(QtGui.QWizard, UiFirstTimeWizard, RegistryProperties):
|
|||||||
site = urllib.request.urlopen(url, timeout=CONNECTION_TIMEOUT)
|
site = urllib.request.urlopen(url, timeout=CONNECTION_TIMEOUT)
|
||||||
meta = site.info()
|
meta = site.info()
|
||||||
return int(meta.get("Content-Length"))
|
return int(meta.get("Content-Length"))
|
||||||
except ConnectionException:
|
except ConnectionError:
|
||||||
if retries > CONNECTION_RETRIES:
|
if retries > CONNECTION_RETRIES:
|
||||||
raise
|
raise
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user