Skip to content

Commit

Permalink
Catch an exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Max00355 committed Nov 28, 2013
1 parent 4f0c5de commit 54898f7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions get_nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ def count_send():
mine = len(mine)
print mine
check = send_command.send({"cmd":"get_nodes_count"}, out=True)
if not check:
return
check = json.loads(check)
if check['nodes'] > mine:
send()
Expand Down

0 comments on commit 54898f7

Please sign in to comment.