Jehiah Czebotar schrieb:
> I've also found that Webware/WebUtils/cgitb.py hadles non object
> errors (ie: raising a string as the error) improperly causing the
> 'fancy traceback' to fail to display the actual traceback. Here is a
> change that works for me, but i think it would be better to do enough
> error checking to never rely on the except block here as falling into
> that block makes *that* exception and not the original exception be
> printed in the fancy traceback.
> 
> <     try:
> <             etype = etype.__name__
> <     except AttributeError:
> <             pass
> ---
> >     if etype and type(etype) != type(""):
> >             try:
> >                     etype = etype.__name__
> >             except AttributeError:
> >                     pass
> 
> if that's not quite clear, or if anyone has other thoughts on this let me 
> know.

Good suggestion. I will add a test that raises a string exception and 
fix these problems (there may be some more). You can also upload a patch 
here: http://sourceforge.net/tracker/?group_id=4866&atid=304866

-- Christoph

------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Webware-devel mailing list
Webware-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-devel

Reply via email to