fix bug #231 exception with mobility script and two wlans
(Boeing r1859)
This commit is contained in:
parent
ade7338cdc
commit
f3b86f6dbd
1 changed files with 5 additions and 2 deletions
|
@ -396,8 +396,11 @@ class BasicRangeModel(WirelessModel):
|
|||
'''
|
||||
if netif == netif2:
|
||||
return
|
||||
(x, y, z) = self._netifs[netif]
|
||||
(x2, y2, z2) = self._netifs[netif2]
|
||||
try:
|
||||
(x, y, z) = self._netifs[netif]
|
||||
(x2, y2, z2) = self._netifs[netif2]
|
||||
except KeyError:
|
||||
return
|
||||
if x2 is None or y2 is None:
|
||||
return
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue