On 04/12/2010 21:13, Gnarlodious wrote:
What you posted doesn't work, I don't know why. All I get is a blank
page and no Apache error report.
There are two problems with this. I am really trying to figure out how
to trap an error on the server without exposing my innards to the
world, which import cgitb; cgitb.enable() does. The other problem is
that no traceback seems to play well with a try-except block. I guess
I am forced to use one or the other, but not both.
What I really wanted to do is display any error in a simple error
statement. This is probably a KeyError, but how am I to know? There
must be some way to print a dump of the current thread before it
deallocates.
Double-check what version of Python is on the server.
See if you can write the traceback to a file on the server which you
can then download.
--
http://mail.python.org/mailman/listinfo/python-list