Handle broken connection from SF side

This commit is contained in:
Ivan Kravets
2015-12-12 17:59:25 +02:00
parent 5b2fac95ce
commit e702e1eb27

View File

@ -101,7 +101,7 @@ class PackageManager(object):
try:
dlpath = self.download(info['url'], pkg_dir, info['sha1'])
except (requests.exceptions.ConnectionError,
exception.FDUnrecognizedStatusCode):
exception.FDUnrecognizedStatusCode, StopIteration):
if info['url'].startswith("http://sourceforge.net"):
dlpath = self.download(
"http://dl.platformio.org/packages/%s" %