From 968c94e2e7f2863ced612d59534199dd0cb3fb97 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 11 May 2012 18:01:26 +0200 Subject: [PATCH] shorter try block --- bat2nodes.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bat2nodes.py b/bat2nodes.py index 8fd5cb6..482915d 100644 --- a/bat2nodes.py +++ b/bat2nodes.py @@ -115,10 +115,11 @@ if options['gateway']: for gateway in options['gateway']: try: node = maybe_node_by_mac(nodes, (gateway, )) - node.group = 2 except: continue + node.group = 2 + def map_link(nodes, pair): distance = 80 strength = 0.2