Fix bad JSON data handler

This commit is contained in:
Joshua Boniface 2023-12-27 09:43:37 -05:00
parent 40ff005a09
commit 84d22751d8
1 changed files with 4 additions and 1 deletions

View File

@ -156,7 +156,10 @@ def getNodeInformation(zkhandler, node_name):
zkhandler, node_name, node_health_plugins
)
node_network_stats = json.loads(_node_network_stats)
if _node_network_stats is not None:
node_network_stats = json.loads(_node_network_stats)
else:
node_network_stats = dict()
# Construct a data structure to represent the data
node_information = {