Issue #1128 new


Anonymous created an issue

File "/usr/local/lib/python2.6/site-packages/CherryPy-3.2.2-py2.6.egg/cherrypy/wsgiserver/", line 75, in _safe_call if is_reader and errnum in wsgiserver.socket_errors_to_ignore: AttributeError: 'module' object has no attribute 'socket_errors_to_ignore'

Comments (1)

  1. Taneli Taira

    The does: from cherrypy import wsgiserver

    The problem is that socket_errors_to_ignore is not an object of wsgiserver, it is an object of wsgiserver.wsgiserver2. You can verify this with python interactive interpreter and the following: from cherrypy import wsgiserver dir(wsgiserver) dir(wsgiserver.wsgiserver2)

    The latter lists socket_errors_to_ignore, while the first doesn't. Still the file tries to use socket_errors_to_ignore directly with wsgiserver.socket_errors_to_ignore. A simple fix is to use wsgiserver.wsgiserver2.socket_errors_to_ignore in line 75 instead.

  2. Log in to comment