From 56ef7710dd3e0b1343f3f157e2afb10a1237395d Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Fri, 14 Jul 2017 02:42:28 +0300 Subject: [PATCH] Fix a silly error introduced by 2407dd29a6b44e96150d48ac12d0d16be2506725 --- gunicorn/arbiter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gunicorn/arbiter.py b/gunicorn/arbiter.py index b2949b7c..81d08820 100644 --- a/gunicorn/arbiter.py +++ b/gunicorn/arbiter.py @@ -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()