aboutsummaryrefslogtreecommitdiffstats
path: root/netmodel/interfaces/process
diff options
context:
space:
mode:
Diffstat (limited to 'netmodel/interfaces/process')
-rw-r--r--netmodel/interfaces/process/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/netmodel/interfaces/process/__init__.py b/netmodel/interfaces/process/__init__.py
index 59bf6f9f..9f3d3c11 100644
--- a/netmodel/interfaces/process/__init__.py
+++ b/netmodel/interfaces/process/__init__.py
@@ -90,7 +90,7 @@ class BWMThread(Process):
if line:
record = self._parse_line(line.strip())
# We use 'total' to push the statistics back to VICN
- if record['iface_name'] == 'total':
+ if record.get('iface_name') == 'total':
for interfaces in self.groups_of_interfaces:
if not len(interfaces) > 1:
# If the tuple contains only one interface, grab