Merge pull request #1052 from jaingaurav/oserror

Catch OSError as well as ValueError on race condition
This commit is contained in:
Berker Peksag 2015-06-22 13:41:48 +03:00
commit d478968d59

View File

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