1
0
Fork 0

scheduler: fix more python-linux-procfs tracebacks

Fixes traceback if the queried process disappears.

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2017-04-12 16:27:53 +02:00
parent cdefe91ee1
commit 191785a054
No known key found for this signature in database
GPG key ID: D8E1C00E076E840B

View file

@ -292,7 +292,7 @@ class SchedulerPlugin(base.Plugin):
def _affinity_changeable(self, p):
try:
flags = p["stat"]["flags"]
except (AttributeError, KeyError):
except (IOError, OSError, AttributeError, KeyError):
return False
return not bool(int(flags) & self.PF_NO_SETAFFINITY)