Fix up errno checking

Change-Id: I196b4e886942eccd2cb3aff3819da1558ddb19d4
This commit is contained in:
Tim Burke 2019-07-16 16:59:38 -07:00
parent 4643412bd1
commit 424a2603d8

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()