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

Do not break if request fails before getting user

parent 89704c02
......@@ -39,7 +39,7 @@ class WeblateExceptionReporterFilter(SafeExceptionReporterFilter):
else:
lang = None
if request.user.is_authenticated():
if hasattr(request, 'user') and request.user.is_authenticated():
user = request.user.username
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