Skip to content

Commit

Permalink
Fixed coin_count crash
Browse files Browse the repository at this point in the history
  • Loading branch information
Max00355 committed Nov 28, 2013
1 parent 1fdd514 commit e05d99e
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions coin_count.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ def send():
out = send_command.send({"cmd":"coin_count"}, out=True)
try:
out = json.loads(out)
except ValueError:
send()
except:
print "Couldn't get number of coins, if this persists please reset."
return
else:
print out
if out['coins'] > coins:
Expand Down

0 comments on commit e05d99e

Please sign in to comment.