From f147ac7eb3a69c2c9eaf14b1fd487a3b258dfc28 Mon Sep 17 00:00:00 2001 From: Thierry Vignaud Date: Tue, 29 Sep 2015 04:19:31 -0400 Subject: do not unset IP if we can't retrieve the MAC one --- src/monitor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/monitor.py b/src/monitor.py index 180e33b..f65ce9d 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -197,7 +197,7 @@ class Monitor: mac_struct=self.ioctl(0x8927, struct.pack('256s', bytes(ifname[:15], 'utf-8')))[18:24] mac=":".join(["%02x" % ord(chr(char)) for char in mac_struct]) except: - addr=_("No address assigned") + pass # addr, mac return addr, mac -- cgit v1.2.1