From 34a57a7569cbde82609f8fd7563d00cf8b1dbd9b Mon Sep 17 00:00:00 2001 From: Robert Date: Wed, 20 Nov 2024 14:39:58 -0500 Subject: [PATCH] glamr/accounts: fix AddUserForm input validation Raise appropriate exception when email input field is empty. --- mibios/glamr/accounts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mibios/glamr/accounts.py b/mibios/glamr/accounts.py index 3a313428..2969c052 100644 --- a/mibios/glamr/accounts.py +++ b/mibios/glamr/accounts.py @@ -40,7 +40,7 @@ def clean_emails(self): data = self.cleaned_data['emails'] data = data.split() if not data: - raise RuntimeError('BORK empty') + raise ValidationError('input field is empty') errors = [] for item in data: