Commit b52f360d authored by Michal Čihař's avatar Michal Čihař

Handle unicode errors as well

Fixes rb#434
Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 34504056
......@@ -226,7 +226,7 @@ def report_error(error, exc_info, request=None, extra_data=None):
LOGGER.error(
'Handled exception %s: %s',
error.__class__.__name__,
str(error)
unicode(error).encode('utf-8')
)
# Print error when running testsuite
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment