How to I get the exception message as string in GUI

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

fowlertrainer at 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