Fix up errno checking
Change-Id: I196b4e886942eccd2cb3aff3819da1558ddb19d4
This commit is contained in:
parent
4643412bd1
commit
424a2603d8
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user