Demonstration of what happens when you crash in your python cgi script & strategies to write better, more robust and debuggable code.
Key elements of this file:
View the source here:
printing from a function
SIMPLE try/except exception handling
Nothing will print after this line, the next line contains a div/0!
Uh oh! Something bad happened!
This message is generated in the 'except' block