[PATCH 1 of 15] Add traceback of exceptions

Bryan O'Sullivan bos at serpentine.com
Wed Aug 24 22:20:15 UTC 2005


On Wed, 2005-08-24 at 23:49 +0200, vincent at ricardis.tudelft.nl wrote:

> +        import traceback
> +        req.out.write("Content-type: text/html\r\n\r\n")
> +        traceback.print_exc(file=req.out)
> +        req.finish()

You should probably use the cgitb module instead.

	<b




More information about the Mercurial mailing list