From 9fdb6d870845fec5d01b3846dde75d7a13bfe0ff Mon Sep 17 00:00:00 2001 From: "Joshua M. Boniface" Date: Thu, 7 Mar 2024 15:44:35 -0500 Subject: [PATCH] Fix bug with network stats --- daemon-common/node.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/daemon-common/node.py b/daemon-common/node.py index 5b6cdcc8..0c421ed1 100644 --- a/daemon-common/node.py +++ b/daemon-common/node.py @@ -158,9 +158,9 @@ def getNodeInformation(zkhandler, node_name): zkhandler, node_name, node_health_plugins ) - if _node_network_stats is not None: + try: node_network_stats = json.loads(_node_network_stats) - else: + except Exception: node_network_stats = dict() # Construct a data structure to represent the data