mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-05 17:28:31 +02:00
Add back tery/except and add a default value to catch all possible error states
This commit is contained in:
parent
6a86a53d04
commit
45dfa9734f
1 changed files with 5 additions and 1 deletions
|
@ -130,7 +130,11 @@ class DomainSecurityEmailView(DomainPermission, FormMixin, DetailView):
|
|||
"""The form is valid, call setter in model."""
|
||||
|
||||
# Set the security email from the form
|
||||
new_email = form.cleaned_data["security_email"]
|
||||
new_email = ""
|
||||
try:
|
||||
new_email = form.cleaned_data["security_email"]
|
||||
except:
|
||||
pass
|
||||
domain = self.get_object()
|
||||
domain.set_security_email(new_email)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue