Commit 98f830b3 authored by Michal Čihař's avatar Michal Čihař

Need to catch index error here as well

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 26afc9a1
......@@ -401,7 +401,7 @@ def about(request):
translation = project.translation_set.all()[0]
total_strings += translation.total
total_words += translation.total_words
except Translation.DoesNotExist:
except (IndexError, Translation.DoesNotExist):
pass
context['title'] = _('About Weblate')
context['total_translations'] = totals['translated__sum']
......
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