fix bug #231 exception with mobility script and two wlans

(Boeing r1859)
This commit is contained in:
ahrenholz 2014-07-29 14:52:08 +00:00
parent ade7338cdc
commit f3b86f6dbd

View file

@ -396,8 +396,11 @@ class BasicRangeModel(WirelessModel):
''' '''
if netif == netif2: if netif == netif2:
return return
(x, y, z) = self._netifs[netif] try:
(x2, y2, z2) = self._netifs[netif2] (x, y, z) = self._netifs[netif]
(x2, y2, z2) = self._netifs[netif2]
except KeyError:
return
if x2 is None or y2 is None: if x2 is None or y2 is None:
return return