mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
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:
parent
a9531c9714
commit
09007c7f0a
@ -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:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user