Merge "Fix up errno checking"

This commit is contained in:
Zuul 2019-07-24 13:16:13 +00:00 committed by Gerrit Code Review
commit d6e790d1b7

View File

@ -619,7 +619,7 @@ def run_server(conf, logger, sock, global_conf=None):
try:
wsgi.server(sock, app, wsgi_logger, **server_kwargs)
except socket.error as err:
if err[0] != errno.EINVAL:
if err.errno != errno.EINVAL:
raise
pool.waitall()