Merge branch 'main' into dk/1217-domain-expiration-epp

This commit is contained in:
David Kennedy 2023-11-21 13:41:32 -05:00
commit 021f0454c6
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
23 changed files with 496 additions and 120 deletions

View file

@ -642,7 +642,7 @@ class Domain(TimeStampedModel, DomainHelper):
# if unable to update domain raise error and stop
if responseCode != ErrorCode.COMMAND_COMPLETED_SUCCESSFULLY:
raise NameserverError(code=nsErrorCodes.UNABLE_TO_UPDATE_DOMAIN)
raise NameserverError(code=nsErrorCodes.BAD_DATA)
successTotalNameservers = len(oldNameservers) - deleteCount + addToDomainCount