Skip to content

Commit

Permalink
glamr/accounts: fix AddUserForm input validation
Browse files Browse the repository at this point in the history
Raise appropriate exception when email input field is empty.
  • Loading branch information
robert102 committed Nov 20, 2024
1 parent d29275b commit 34a57a7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mibios/glamr/accounts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 34a57a7

Please sign in to comment.