We're back after a server migration that caused effbot.org to fall over a bit harder than expected. Expect some glitches.

The cgitb Module

(New in 2.2) CGI wrapper. This module traps exceptions in the CGI script, and generates extended traceback messages in HTML.

import cgitb, cgi
cgitb.enable()