From 424a2603d8d4a454f269c9df5b4c7dc0d389b9da Mon Sep 17 00:00:00 2001 From: Tim Burke Date: Tue, 16 Jul 2019 16:59:38 -0700 Subject: [PATCH] Fix up errno checking Change-Id: I196b4e886942eccd2cb3aff3819da1558ddb19d4 --- swift/common/wsgi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/swift/common/wsgi.py b/swift/common/wsgi.py index 67671d64fd..66f2c3e77f 100644 --- a/swift/common/wsgi.py +++ b/swift/common/wsgi.py @@ -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()