power: suppress failure to remove file

It does not matter if the file cannot be removed, so do not report it.
master
James Cameron 9 years ago committed by Sam Parkinson
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…
Cancel
Save