parent
166437649c
commit
5f96b603a8
1 changed files with 3 additions and 2 deletions
|
@ -105,8 +105,9 @@ class Module(bumblebee.engine.Module):
|
||||||
state.append("AC")
|
state.append("AC")
|
||||||
else:
|
else:
|
||||||
charge = ""
|
charge = ""
|
||||||
with open("{}/status".format(widget.name)) as f:
|
try:
|
||||||
charge = f.read().strip()
|
with open("{}/status".format(widget.name)) as f:
|
||||||
|
charge = f.read().strip()
|
||||||
except IOError:
|
except IOError:
|
||||||
pass
|
pass
|
||||||
if charge == "Discharging":
|
if charge == "Discharging":
|
||||||
|
|
Loading…
Reference in a new issue