Simple unicode-safe version of str(exception)?

Bjoern Schliessmann usenet-mail-0306.20.chr0n0ss at spamgourmet.com
Tue Apr 29 09:44:55 EDT 2008


"Martin v. Löwis" wrote:

> e is an exception object, not a Unicode object.

Er, sure, thanks for pointing that out. At first sight he should
substitute "e" with "e.message" then since he tries to convert to
string (for display?).

Regards,


Björn

-- 
BOFH excuse #366:

ATM cell has no roaming feature turned on, notebooks can't connect




More information about the Python-list mailing list