diff --git a/bumblebee/modules/battery.py b/bumblebee/modules/battery.py index 7638d3f..57a12cc 100644 --- a/bumblebee/modules/battery.py +++ b/bumblebee/modules/battery.py @@ -107,6 +107,8 @@ class Module(bumblebee.engine.Module): charge = "" with open("{}/status".format(widget.name)) as f: charge = f.read().strip() + except IOError: + pass if charge == "Discharging": state.append("discharging-{}".format(min([10, 25, 50, 80, 100], key=lambda i: abs(i-capacity)))) else: