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)
|
||||
meta = site.info()
|
||||
return int(meta.get("Content-Length"))
|
||||
except ConnectionException:
|
||||
except ConnectionError:
|
||||
if retries > CONNECTION_RETRIES:
|
||||
raise
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user