[docs] [issue17155] logging can raise UnicodeEncodeError
Éric Araujo
report at bugs.python.org
Fri Feb 8 21:59:50 CET 2013
Éric Araujo added the comment:
Hm the correct way to use exception is:
except Something:
logger.exception('problem while doing X')
i.e. this is a generic unicode-to-str-with-default-encoding problem, not something specific to logging.
Vinay, do you think logging should do something smarter than calling str when passed non-str objects?
----------
nosy: +eric.araujo, vinay.sajip
title: Logging throwing UnicodeEncodeError exception -> logging can raise UnicodeEncodeError
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue17155>
_______________________________________
More information about the docs
mailing list