From 0ecd8974ce2bff465df52de3d441efc3e82c7eca Mon Sep 17 00:00:00 2001 From: nugaon Date: Thu, 6 May 2021 10:16:30 +0200 Subject: [PATCH] refactor: make connection check be compatible with both python 2 and 3 --- scripts/bee.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/bee.sh b/scripts/bee.sh index d5129e3..192c8d7 100755 --- a/scripts/bee.sh +++ b/scripts/bee.sh @@ -57,7 +57,7 @@ log_queen() { } count_connected_peers() { - COUNT=$( curl -s http://localhost:1635/peers | python -c 'import json,sys; obj=json.load(sys.stdin); print len(obj["peers"]);' ) + COUNT=$( curl -s http://localhost:1635/peers | python -c 'import json,sys; obj=json.load(sys.stdin); print (len(obj["peers"]));' ) echo "$COUNT" }