Commit 33fa9627 authored by Michal Čihař's avatar Michal Čihař

Simplify code, this should raise only IndexError

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent d57d66c0
......@@ -388,7 +388,7 @@ def about(request):
translation = project.translation_set.all()[0]
total_strings.append(translation.total)
total_words.append(translation.total_words)
except (IndexError, Translation.DoesNotExist):
except IndexError:
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