power: suppress failure to remove file
It does not matter if the file cannot be removed, so do not report it.
This commit is contained in:
parent
561271bad1
commit
2ddd64bace
@ -80,6 +80,5 @@ class PowerManager():
|
|||||||
try:
|
try:
|
||||||
os.unlink(self._path)
|
os.unlink(self._path)
|
||||||
except OSError:
|
except OSError:
|
||||||
logging.error("Inhibit Suspend: Could not delete file %s",
|
pass
|
||||||
self._path)
|
|
||||||
self._suspend_inhibit_counter = 0
|
self._suspend_inhibit_counter = 0
|
||||||
|
Loading…
Reference in New Issue
Block a user