Skip to content

Commit

Permalink
minor python3 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
thebookworm101 committed Mar 30, 2015
1 parent f813d3d commit 4ea2994
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bitcoin/bci.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ def blockr_unspent(*args):
else:
addrs = addr_args
res = make_request(blockr_url+','.join(addrs))
data = json.loads(res)['data']
try:
data = json.loads(res.decode('utf-8'))['data']
except Exception:
data = json.loads(res)['data']

o = []
if 'unspent' in data:
data = [data]
Expand Down

0 comments on commit 4ea2994

Please sign in to comment.