shorter try block
This commit is contained in:
parent
d23736d0f5
commit
968c94e2e7
|
@ -115,10 +115,11 @@ if options['gateway']:
|
||||||
for gateway in options['gateway']:
|
for gateway in options['gateway']:
|
||||||
try:
|
try:
|
||||||
node = maybe_node_by_mac(nodes, (gateway, ))
|
node = maybe_node_by_mac(nodes, (gateway, ))
|
||||||
node.group = 2
|
|
||||||
except:
|
except:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
|
node.group = 2
|
||||||
|
|
||||||
def map_link(nodes, pair):
|
def map_link(nodes, pair):
|
||||||
distance = 80
|
distance = 80
|
||||||
strength = 0.2
|
strength = 0.2
|
||||||
|
|
Loading…
Reference in a new issue