Skip to content

Commit

Permalink
AddonManager: Handled exception when unable to download from url
Browse files Browse the repository at this point in the history
  • Loading branch information
yorikvanhavre committed Jul 10, 2019
1 parent fec5f2a commit 4fc91dc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Mod/AddonManager/addonmanager_workers.py
Expand Up @@ -677,6 +677,8 @@ def download(self,giturl,clonedir):
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
Expand Down

0 comments on commit 4fc91dc

Please sign in to comment.