Skip to content

Commit

Permalink
Fix "ChunkedEncodingError" when SF connection is broken // Issue #356
Browse files Browse the repository at this point in the history
  • Loading branch information
ivankravets committed Dec 18, 2015
1 parent 43b50e5 commit 0ff795e
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
6 changes: 6 additions & 0 deletions HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ Release History
PlatformIO 2.0
--------------

2.6.2 (2015-12-??)
~~~~~~~~~~~~~~~~~~

* Fixed ``ChunkedEncodingError`` when SF connection is broken
(`issue #356 <https://github.com/platformio/platformio/issues/356>`_)

2.6.1 (2015-12-18)
~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion platformio/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.

VERSION = (2, 6, 1)
VERSION = (2, 6, "2.dev0")
__version__ = ".".join([str(s) for s in VERSION])

__title__ = "platformio"
Expand Down
1 change: 1 addition & 0 deletions platformio/pkgmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def install(self, name):
try:
dlpath = self.download(info['url'], pkg_dir, info['sha1'])
except (requests.exceptions.ConnectionError,
requests.exceptions.ChunkedEncodingError,
exception.FDUnrecognizedStatusCode, StopIteration):
if info['url'].startswith("http://sourceforge.net"):
dlpath = self.download(
Expand Down

0 comments on commit 0ff795e

Please sign in to comment.