Skip to content

Commit

Permalink
Fix connectivity test when editing domains (again)
Browse files Browse the repository at this point in the history
Fixes #523
  • Loading branch information
PhrozenByte committed Apr 18, 2023
1 parent 2bbec89 commit 74a960d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/nsupdate/main/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def clean_nameserver_update_secret(self):
def clean(self):
cleaned_data = super(EditDomainForm, self).clean()

if self.cleaned_data['available']:
if self.cleaned_data['available'] and 'nameserver_ip' in cleaned_data:
try:
check_domain(self.instance.name, cleaned_data['nameserver_ip'])

Expand Down

0 comments on commit 74a960d

Please sign in to comment.