Commits

Robert Brewer committed 95dd968

Re-fix and backport of #860 (Robustness issue in exception catching).

  • Participants
  • Parent commits bea8a71
  • Branches cherrypy-3.0.x

Comments (0)

Files changed (1)

File cherrypy/wsgiserver/__init__.py

                 try:
                     host, port = sock.getsockname()[:2]
                 except socket.error, x:
-                    if x.args[0] in socket_errors_to_ignore:
+                    if x.args[0] not in socket_errors_to_ignore:
                         # Changed to use error code and not message
                         # See http://www.cherrypy.org/ticket/860.
                         raise