From 3a386b90ae757fb8a57d5cb5aecc5eeac9e19845 Mon Sep 17 00:00:00 2001 From: chapeau Date: Sat, 15 Aug 2020 13:27:25 +0200 Subject: [PATCH] Add exception name --- re2o/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/re2o/views.py b/re2o/views.py index 3897f4a3..42e8cebf 100644 --- a/re2o/views.py +++ b/re2o/views.py @@ -117,7 +117,7 @@ def about_page(request): try: president = Mandate.get_mandate().president.get_full_name() - except: + except Mandate.DoesNotExist: president = _("Unable to get the information.") return render(