Russell E. Owen wrote:
> I have code like this:
> except Exception, e:
> self.setState(self.Failed, str(e))
> which fails if the exception contains a unicode argument.
Fails how?
> I did, of course, try unicode(e) but that fails.
Converting unicode to unicode doesn't help. Instead of just e, try
using e.encode("some-encoding") where some-encoding should be your
system's default encoding like utf-8 or iso8859-1.
Regards,
Björn
--
BOFH excuse #434:
Please state the nature of the technical emergency
--
http://mail.python.org/mailman/listinfo/python-list