From 17d813e08b97e8357369103804e556b391a93862 Mon Sep 17 00:00:00 2001 From: Emanuel Schuetze Date: Wed, 21 Nov 2012 19:36:12 +0100 Subject: [PATCH] Show error message for NameError. --- openslides/assignment/views.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openslides/assignment/views.py b/openslides/assignment/views.py index af661d072..f90d8d9cc 100644 --- a/openslides/assignment/views.py +++ b/openslides/assignment/views.py @@ -170,6 +170,8 @@ def set_status(request, assignment_id=None, status=None): messages.success(request, _('Election status was set to: %s.') % assignment.get_status_display()) except Assignment.DoesNotExist: pass + except NameError, e: + messages.error(request, e) return redirect(reverse('assignment_view', args=[assignment_id]))