Skip Montanaro <skip@pobox.com> wrote: > This reminds me, it occurred to me the other day that a plain text version > of cgitb would be useful to use for non-web scripts. You'd get a lot more > context about the environment in which the exception was raised. I have code adapted from cgitb in my jonpy cgi module which simultaneously does text and optional html fancy tracebacks. See the function "traceback" in: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jonpy/jonpy/jon/cgi.py the 'req.error()' calls are doing the text traceback, simply remove the stuff that says 'if html' to remove the html traceback and then do a search&replace from req.error to out.write() or something.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4