diff options
Diffstat (limited to 'src/monitor.py')
-rw-r--r-- | src/monitor.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/monitor.py b/src/monitor.py index 3eede34..2bd72e6 100644 --- a/src/monitor.py +++ b/src/monitor.py @@ -16,7 +16,7 @@ import _native # localization import gettext try: - gettext.install("net_monitor", str=1) + gettext.install("net_monitor") except IOError: _ = str @@ -160,7 +160,7 @@ class Monitor: """Check if device is wireless and get its details if necessary""" try: stats = {} - if not os.path.isfile("/proc/net/wireless"): + if not os.path.isfile("/proc/net/wireless"): return stats with open("/proc/net/wireless") as fd: ifaces = fd.readlines()[2:] |