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:
James Cameron 2015-05-13 09:03:23 +10:00 committed by Sam Parkinson
parent 561271bad1
commit 2ddd64bace

View File

@ -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