AddonManager: Handled exception when unable to download from url

This commit is contained in:
Yorik van Havre
2019-07-10 11:29:32 -03:00
parent 06f8975576
commit 3dc7df22cf

View File

@@ -677,6 +677,8 @@ class InstallWorker(QtCore.QThread):
u = urlopen(zipurl)
except:
return translate("AddonsInstaller", "Error: Unable to download") + " " + zipurl
if not u:
return translate("AddonsInstaller", "Error: Unable to download") + " " + zipurl
if sys.version_info.major < 3:
import StringIO as io
_stringio = io.StringIO