Restore suspend catch the wrong exception

Signed-off-by: Gonzalo Odiard <godiard@sugarlabs.org>
This commit is contained in:
Gonzalo Odiard 2014-01-31 12:30:43 -03:00
parent 62b60fa1e1
commit 53a148f88c

View File

@ -80,6 +80,6 @@ class PowerManager():
path = os.path.join(_POWERD_INHIBIT_DIR, str(os.getpid()))
try:
os.unlink(path)
except IOError:
except OSError:
logging.error("Inhibit Suspend: Could not delete file %s", path)
self._suspend_inhibit_counter = 0