Catch OSError as well as ValueError on race condition

The fix for issue #863 was incomplete as both OSError or ValueError could be
raised by os.fstat(). Thus we need to catch both types of exceptions
This commit is contained in:
Gaurav Jain 2015-06-21 14:11:56 -07:00
parent a9531c9714
commit 09007c7f0a

View File

@ -429,7 +429,7 @@ class Arbiter(object):
try:
if time.time() - worker.tmp.last_update() <= self.timeout:
continue
except ValueError:
except (OSError, ValueError):
continue
if not worker.aborted: