How to I get the exception message as string in GUI

Gerhard Häring gh at ghaering.de
Thu Dec 4 10:05:21 CET 2003


fowlertrainer at anonym.hu wrote:
> Hello ,
> 
>   I want to get the exception error msg in string, but I don't want to
>   save to file, or print.
>   I want to show it in memo. [...]
>  traceback.print_exc()   <--------- what I must write ?

See traceback.format_exception().

-- Gerhard






More information about the Python-list mailing list