jgarzik / python-bitcoinrpc

Python interface to bitcoin's JSON-RPC API
GNU Lesser General Public License v2.1
644 stars 304 forks source link

Exception errors now print to console #22

Closed maraoz closed 9 years ago

maraoz commented 11 years ago

Following this guide> http://stackoverflow.com/questions/1319615/proper-way-to-declare-custom-exceptions-in-modern-python

thelinuxkid commented 11 years ago

This will output something like this: bitcoinrpc.authproxy.JSONRPCException: {'message': 'bar', 'code': -5}

JSON strings are normally not used in exception messages. See pull #21 for a more Pythonic way.

ankostis commented 10 years ago

Please @jgarzik, apply rspeed's fix.

reiven commented 10 years ago

ping

reiven commented 9 years ago

Sorry to bother again @jgarzik but it will be possible to merge this? thanks

jgarzik commented 9 years ago

Upstream updates superceded this -- please open a new PR with further updates (which are welcome)