mirror of
https://github.com/maelgangloff/domain-watchdog.git
synced 2025-12-17 17:55:42 +00:00
feat: throw only if necessary
This commit is contained in:
parent
de76209665
commit
a14e6efb7c
@ -165,13 +165,16 @@ final readonly class UpdateDomainHandler
|
|||||||
try {
|
try {
|
||||||
$this->RDAPService->registerDomain($ldhName);
|
$this->RDAPService->registerDomain($ldhName);
|
||||||
} catch (
|
} catch (
|
||||||
DomainNotFoundException|
|
|
||||||
TldNotSupportedException|
|
TldNotSupportedException|
|
||||||
MalformedDomainException|
|
MalformedDomainException
|
||||||
UnknownRdapServerException
|
|
||||||
$exception
|
$exception
|
||||||
) {
|
) {
|
||||||
throw new UnrecoverableMessageHandlingException($exception->getMessage(), 0, $exception);
|
throw new UnrecoverableMessageHandlingException($exception->getMessage(), 0, $exception);
|
||||||
|
} catch (
|
||||||
|
UnknownRdapServerException|
|
||||||
|
DomainNotFoundException
|
||||||
|
) {
|
||||||
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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 '%registration private%'
|
||||||
AND LOWER(org||fn) NOT LIKE '%domain administrator%'
|
AND LOWER(org||fn) NOT LIKE '%domain administrator%'
|
||||||
AND LOWER(org||fn) NOT LIKE '%registry super user account%'
|
AND LOWER(org||fn) NOT LIKE '%registry super user account%'
|
||||||
AND LOWER(org||fn) not like '%ano nymous%'
|
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 '%redacted%'
|
||||||
|
AND LOWER(org||fn) NOT IN ('na', 'n/a', '-', 'none', 'not applicable')
|
||||||
AND handle NOT IN ($handleBlacklist)
|
AND handle NOT IN ($handleBlacklist)
|
||||||
AND de.roles @> '["registrant"]'
|
AND de.roles @> '["registrant"]'
|
||||||
AND sub.tld_id IS NOT NULL
|
AND sub.tld_id IS NOT NULL
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user