From 84d22751d88c781ea9f2c9fbbacfeb032e9626f1 Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Wed, 27 Dec 2023 09:43:37 -0500 Subject: [PATCH] Fix bad JSON data handler --- daemon-common/node.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/daemon-common/node.py b/daemon-common/node.py index d0cb9164..daa35ecd 100644 --- a/daemon-common/node.py +++ b/daemon-common/node.py @@ -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 = {