diff options
-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 78d6b4b..180e33b 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -195,7 +195,7 @@ class Monitor: # mac address try: mac_struct=self.ioctl(0x8927, struct.pack('256s', bytes(ifname[:15], 'utf-8')))[18:24] - mac=":".join(["%02x" % ord(char) for char in mac_struct]) + mac=":".join(["%02x" % ord(chr(char)) for char in mac_struct]) except: addr=_("No address assigned") # addr, mac |