diff --git a/bumblebee/modules/nic.py b/bumblebee/modules/nic.py index cfb7fa4..3bdb50d 100644 --- a/bumblebee/modules/nic.py +++ b/bumblebee/modules/nic.py @@ -17,9 +17,9 @@ class Module(bumblebee.module.Module): def widgets(self): result = [] interfaces = [ i for i in netifaces.interfaces() if not i.startswith(self._exclude) ] - addr = [] state = "down" for intf in interfaces: + addr = [] try: if netifaces.AF_INET in netifaces.ifaddresses(intf): for ip in netifaces.ifaddresses(intf)[netifaces.AF_INET]: