diff options
author | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-09-29 04:19:31 -0400 |
---|---|---|
committer | Thierry Vignaud <thierry.vignaud@gmail.com> | 2015-09-29 04:50:04 -0400 |
commit | f147ac7eb3a69c2c9eaf14b1fd487a3b258dfc28 (patch) | |
tree | b6c6dc682001063b7126fdccad1c3c0f0e32a465 /src | |
parent | 2c64c9ba3472dcd640e6adc15a42ac08ffa1ad12 (diff) | |
download | net_monitor-f147ac7eb3a69c2c9eaf14b1fd487a3b258dfc28.tar net_monitor-f147ac7eb3a69c2c9eaf14b1fd487a3b258dfc28.tar.gz net_monitor-f147ac7eb3a69c2c9eaf14b1fd487a3b258dfc28.tar.bz2 net_monitor-f147ac7eb3a69c2c9eaf14b1fd487a3b258dfc28.tar.xz net_monitor-f147ac7eb3a69c2c9eaf14b1fd487a3b258dfc28.zip |
do not unset IP if we can't retrieve the MAC one
Diffstat (limited to 'src')
-rw-r--r-- | src/monitor.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 |