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

Avoid encoding errors in debug code

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 400c6b80
......@@ -42,7 +42,7 @@ class WeblateExceptionReporterFilter(SafeExceptionReporterFilter):
if (hasattr(request, 'user')
and request.user.is_authenticated()):
user = request.user.username
user = request.user.username.encode('utf-8')
else:
user = None
......
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