Showing errors explicitly in try... except

John Roth newsgroups at jhrothjr.com
Fri Apr 1 08:40:34 EST 2005


"Harlin Seritt" <harlinseritt at yahoo.com> wrote in message 
news:1112354356.092391.238710 at f14g2000cwb.googlegroups.com...
> When using try... except... errors don't show up. Is there a way to
> force stderr despite using try...except?

If you're looking for stack traces, look at the inspect and
traceback modules. They contain the tools to do just
about anything you need for error reporting. Also there
is a logger module somewhere so you can put the stuff
somewhere permanent if you want.

John Roth

>
> thanks,
>
> Harlin Seritt
> 




More information about the Python-list mailing list