From f3b86f6dbd207045a64e688adb8cdd774e908372 Mon Sep 17 00:00:00 2001 From: ahrenholz Date: Tue, 29 Jul 2014 14:52:08 +0000 Subject: [PATCH] fix bug #231 exception with mobility script and two wlans (Boeing r1859) --- daemon/core/mobility.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/daemon/core/mobility.py b/daemon/core/mobility.py index 2e93021b..03b30c3a 100644 --- a/daemon/core/mobility.py +++ b/daemon/core/mobility.py @@ -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