From e702e1eb2787b49feadb1d2da5e49aae9413dafb Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Sat, 12 Dec 2015 17:59:25 +0200 Subject: [PATCH] Handle broken connection from SF side --- platformio/pkgmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformio/pkgmanager.py b/platformio/pkgmanager.py index 47cde832..65054c67 100644 --- a/platformio/pkgmanager.py +++ b/platformio/pkgmanager.py @@ -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" %