mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
Fix a silly error introduced by 2407dd29a6b44e96150d48ac12d0d16be2506725
This commit is contained in:
parent
2407dd29a6
commit
56ef7710dd
@ -364,8 +364,8 @@ class Arbiter(object):
|
||||
pass
|
||||
except (select.error, OSError) as e:
|
||||
# TODO: select.error is a subclass of OSError since Python 3.3.
|
||||
errno = getattr(e, 'errno', e.args[0])
|
||||
if errno not in [errno.EAGAIN, errno.EINTR]:
|
||||
error_number = getattr(e, 'errno', e.args[0])
|
||||
if error_number not in [errno.EAGAIN, errno.EINTR]:
|
||||
raise
|
||||
except KeyboardInterrupt:
|
||||
sys.exit()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user