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