From db4dec727046a022488a436ca9bcd0211bfc227e Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sat, 2 Feb 2013 01:27:49 +0100 Subject: [PATCH] handle aliases without names --- nodedb.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nodedb.py b/nodedb.py index 38b4adc..a0905a8 100644 --- a/nodedb.py +++ b/nodedb.py @@ -171,7 +171,8 @@ class NodeDB: node.add_mac(mac) self._nodes.append(node) - node.name = alias['name'] + if 'name' in alias: + node.name = alias['name'] if 'vpn' in alias and alias['vpn']: node.interfaces[mac].vpn = True