In the interactive part of my app which I cannot easily execute in the shell (or how can I?), how do I get error messages?
I can return my own error messages and see them in the browser, but I would like to get the interpreter's error descriptions that I would see in the shell.
sys.exc_info()[0] does not work.