kmadac / bitstamp-python-client

Python package to communicate with bitstamp.net
MIT License
143 stars 70 forks source link

Better failure on non-json responses #17

Closed SmileyChris closed 10 years ago

SmileyChris commented 10 years ago

Bitstamp's API is playing up at the moment, and returning a short HTML response rather than JSON.

The generic JSON decoding failure exception isn't very useful, and it also highlighted a bug that for non-json responses it could still result in this exception getting raised.