mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-02 16:02:15 +02:00
Specify expection type KeyError
This commit is contained in:
parent
45dfa9734f
commit
1436eb12bd
1 changed files with 1 additions and 1 deletions
|
@ -133,7 +133,7 @@ class DomainSecurityEmailView(DomainPermission, FormMixin, DetailView):
|
|||
new_email = ""
|
||||
try:
|
||||
new_email = form.cleaned_data["security_email"]
|
||||
except:
|
||||
except KeyError:
|
||||
pass
|
||||
domain = self.get_object()
|
||||
domain.set_security_email(new_email)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue