mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
fix: use OSError instead of deprecated EnvironmentError
This commit is contained in:
parent
6b60bcff7e
commit
6f9b8a5a7e
@ -129,7 +129,7 @@ class ThreadWorker(base.Worker):
|
||||
self.nr_conns += 1
|
||||
# enqueue the job
|
||||
self.enqueue_req(conn)
|
||||
except EnvironmentError as e:
|
||||
except OSError as e:
|
||||
if e.errno not in (errno.EAGAIN, errno.ECONNABORTED,
|
||||
errno.EWOULDBLOCK):
|
||||
raise
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user