shorter try block

alfred-data
root 2012-05-11 18:01:26 +02:00
parent d23736d0f5
commit 968c94e2e7
1 changed files with 2 additions and 1 deletions

View File

@ -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