Use HTTP mirror for Package Manager in case with SSL errors // Resolve #645

This commit is contained in:
Ivan Kravets
2016-05-04 15:50:00 +03:00
parent b587927687
commit aca646e6b9
2 changed files with 3 additions and 0 deletions

View File

@ -7,6 +7,8 @@ PlatformIO 2.0
2.9.2 (2016-??-??)
~~~~~~~~~~~~~~~~~~
* Use HTTP mirror for Package Manager in case with SSL errors
(`issue #645 <https://github.com/platformio/platformio/issues/645>`_)
* Fixed bug with ``env_default`` when ``pio run -e`` is used
2.9.1 (2016-04-30)

View File

@ -102,6 +102,7 @@ class PackageManager(object):
dlpath = self.download(info['url'], pkg_dir, info['sha1'])
except (requests.exceptions.ConnectionError,
requests.exceptions.ChunkedEncodingError,
requests.exceptions.SSLError,
exception.FDUnrecognizedStatusCode, StopIteration):
if not info['url'].startswith("http://dl.platformio.org"):
dlpath = self.download(