ApeWorX / py-solc-x

Python wrapper and version management tool for the solc Solidity compiler.
https://solcx.readthedocs.io/
MIT License
141 stars 49 forks source link

Fix progress bar status code #71

Closed iamdefinitelyahuman closed 4 years ago

iamdefinitelyahuman commented 4 years ago

What I did

When a download fails and the progress bar is active, correctly identify the failure to avoid the TypeError: cannot concat bytes to string exception.

Closes #70

How I did it

In install.py, check the response status code before streaming the content.

How to verify it

Run tests.