Remove extraneous print statements and rename extendedValues to threeNS

This commit is contained in:
Rebecca Hsieh 2023-10-04 09:14:09 -07:00
parent 5fcae0cb80
commit fbad2abd9d
No known key found for this signature in database
GPG key ID: 644527A2F375A379
3 changed files with 9 additions and 10 deletions

View file

@ -277,14 +277,12 @@ class Domain(TimeStampedModel, DomainHelper):
return self.name in nameserver
def checkHostIPCombo(self, nameserver: str, ip: list):
print("Do I come into checkHostIPCombo")
if self.isSubdomain(nameserver) and (ip is None or ip == []):
raise ValueError(
"Nameserver %s needs to have an "
"IP address because it is a subdomain" % nameserver
)
elif not self.isSubdomain(nameserver) and (ip is not None and ip != []):
print("In 2nd else statement")
raise ValueError(
"Nameserver %s cannot be linked "
"because %s is not a subdomain" % (nameserver, ip)