From 01fe7c90a554333e99d834ef1fc5f2c3832dacd5 Mon Sep 17 00:00:00 2001 From: Dan Albert Date: Wed, 23 Oct 2019 11:04:15 -0600 Subject: [PATCH] Do not break build on missing curl results (#6516) --- .../testnet-performance/testnet-automation-json-parser.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/system-test/testnet-performance/testnet-automation-json-parser.py b/system-test/testnet-performance/testnet-automation-json-parser.py index 128071612..c1d005c82 100755 --- a/system-test/testnet-performance/testnet-automation-json-parser.py +++ b/system-test/testnet-performance/testnet-automation-json-parser.py @@ -5,6 +5,7 @@ data=json.load(sys.stdin) if 'results' in data: for result in data['results']: - print result['series'][0]['columns'][1].encode() + ': ' + str(result['series'][0]['values'][0][1]) + if 'series' in result: + print result['series'][0]['columns'][1].encode() + ': ' + str(result['series'][0]['values'][0][1]) else: print "No results returned from CURL request"