forked from platformio/platformio-core
Handle broken connection from SF side
This commit is contained in:
@ -101,7 +101,7 @@ class PackageManager(object):
|
|||||||
try:
|
try:
|
||||||
dlpath = self.download(info['url'], pkg_dir, info['sha1'])
|
dlpath = self.download(info['url'], pkg_dir, info['sha1'])
|
||||||
except (requests.exceptions.ConnectionError,
|
except (requests.exceptions.ConnectionError,
|
||||||
exception.FDUnrecognizedStatusCode):
|
exception.FDUnrecognizedStatusCode, StopIteration):
|
||||||
if info['url'].startswith("http://sourceforge.net"):
|
if info['url'].startswith("http://sourceforge.net"):
|
||||||
dlpath = self.download(
|
dlpath = self.download(
|
||||||
"http://dl.platformio.org/packages/%s" %
|
"http://dl.platformio.org/packages/%s" %
|
||||||
|
Reference in New Issue
Block a user