From c63ace27211ad9e5d39093c7d83776ba6b44ef09 Mon Sep 17 00:00:00 2001 From: Henrik Levkowetz Date: Mon, 30 Sep 2019 21:37:40 +0000 Subject: [PATCH] Removed debug-related code from group edit clean_acronym(). Fixes issue #2804. - Legacy-Id: 16787 --- ietf/group/forms.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/ietf/group/forms.py b/ietf/group/forms.py index 198842854..4e60caab4 100644 --- a/ietf/group/forms.py +++ b/ietf/group/forms.py @@ -126,7 +126,6 @@ class GroupForm(forms.Form): del self.fields[f] def clean_acronym(self): - try: # Changing the acronym of an already existing group will cause 404s all # over the place, loose history, and generally muck up a lot of # things, so we don't permit it @@ -178,12 +177,8 @@ class GroupForm(forms.Form): return acronym else: raise forms.ValidationError("Warning: Acronym used for a historic group.") + return acronym - except forms.ValidationError: - pass - except Exception: - import traceback - traceback.print_exc() def clean_urls(self): return [x.strip() for x in self.cleaned_data["urls"].splitlines() if x.strip()]