mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-20 09:46:06 +02:00
remove unecessary try/catch
This commit is contained in:
parent
1436eb12bd
commit
c07d858b18
1 changed files with 1 additions and 5 deletions
|
@ -130,11 +130,7 @@ class DomainSecurityEmailView(DomainPermission, FormMixin, DetailView):
|
||||||
"""The form is valid, call setter in model."""
|
"""The form is valid, call setter in model."""
|
||||||
|
|
||||||
# Set the security email from the form
|
# Set the security email from the form
|
||||||
new_email = ""
|
new_email = form.cleaned_data["security_email"]
|
||||||
try:
|
|
||||||
new_email = form.cleaned_data["security_email"]
|
|
||||||
except KeyError:
|
|
||||||
pass
|
|
||||||
domain = self.get_object()
|
domain = self.get_object()
|
||||||
domain.set_security_email(new_email)
|
domain.set_security_email(new_email)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue