cgitb and Apache
Robert Hancock
hancock.robert at gmail.com
Tue Dec 23 00:32:25 EST 2008
I have a cgi running in my alpha environment and, of course,
everything works fine. In beta, when I attempt to access a page via
our proxy, which works perfectly in alpha. It attempts to call cgitb
but freezes for while and then exits.
The Apache log show:
[Mon Dec 22 23:49:25 2008] [error] [client 172.16.143.75] /usr/local/
python26/lib/python2.6/cgitb.py:173: DeprecationWarning:
BaseException.message has been deprecated as of Python 2.6
[Mon Dec 22 23:49:25 2008] [error] [client 172.16.143.75] value =
pydoc.html.repr(getattr(evalue, name))
The source for cgitb at 173 is:
pydoc.html.escape(str(evalue)))]
if isinstance(evalue, BaseException):
for name in dir(evalue):
if name[:1] == '_': continue
---> value = pydoc.html.repr(getattr(evalue, name))
exception.append('\n<br>%s%s =\n%s' % (indent, name,
value))
import traceback
return head + ''.join(frames) + ''.join(exception) + '''
Any suggestions on how to deal with this?
More information about the Python-list
mailing list