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:
|
||||
os.unlink(self._path)
|
||||
except OSError:
|
||||
logging.error("Inhibit Suspend: Could not delete file %s",
|
||||
self._path)
|
||||
pass
|
||||
self._suspend_inhibit_counter = 0
|
||||
|
Loading…
Reference in New Issue
Block a user