feat: throw only if necessary

This commit is contained in:
Maël Gangloff 2025-11-03 22:06:00 +01:00
parent de76209665
commit a14e6efb7c
No known key found for this signature in database
GPG Key ID: 11FDC81C24A7F629
2 changed files with 10 additions and 6 deletions

View File

@ -165,13 +165,16 @@ final readonly class UpdateDomainHandler
try {
$this->RDAPService->registerDomain($ldhName);
} catch (
DomainNotFoundException|
TldNotSupportedException|
MalformedDomainException|
UnknownRdapServerException
MalformedDomainException
$exception
) {
throw new UnrecoverableMessageHandlingException($exception->getMessage(), 0, $exception);
} catch (
UnknownRdapServerException|
DomainNotFoundException
) {
return;
}
}
}

View File

@ -50,8 +50,9 @@ WHERE LOWER(org||fn) NOT LIKE '%redacted for privacy%'
AND LOWER(org||fn) NOT LIKE '%registration private%'
AND LOWER(org||fn) NOT LIKE '%domain administrator%'
AND LOWER(org||fn) NOT LIKE '%registry super user account%'
AND LOWER(org||fn) not like '%ano nymous%'
AND LOWER(org||fn) not in ('na', 'n/a', '-', 'none', 'not applicable')
AND LOWER(org||fn) NOT LIKE '%ano nymous%'
AND LOWER(org||fn) NOT LIKE '%redacted%'
AND LOWER(org||fn) NOT IN ('na', 'n/a', '-', 'none', 'not applicable')
AND handle NOT IN ($handleBlacklist)
AND de.roles @> '["registrant"]'
AND sub.tld_id IS NOT NULL