From 19fb90a30084f02e2f65aeff46dac588336d8646 Mon Sep 17 00:00:00 2001 From: Donald Cheng Hong Zou Date: Sat, 3 Apr 2021 14:10:07 -0400 Subject: [PATCH] Update dashboard.py --- src/dashboard.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/dashboard.py b/src/dashboard.py index 816fc4e..8103f70 100644 --- a/src/dashboard.py +++ b/src/dashboard.py @@ -66,7 +66,8 @@ def get_conf_peers_data(config_name): if len(file[i]) > 0: if file[i] != "[Interface]": tmp = file[i].replace(" ", "").split("=", 1) - conf_peer_data['Interface'][tmp[0]] = tmp[1] + if len(tmp) == 2: + conf_peer_data['Interface'][tmp[0]] = tmp[1] conf_peers = file[peers_start:] peer = -1 for i in conf_peers: