chore: simplify ProcessWatchListTrigger

This commit is contained in:
Maël Gangloff
2024-07-31 21:10:09 +02:00
parent fc51f65f3b
commit 28ab4719ab

View File

@@ -55,11 +55,9 @@ final readonly class ProcessWatchListTriggerHandler
try {
$domain = $this->RDAPService->registerDomain($domain->getLdhName());
} catch (HttpExceptionInterface) { // To allow the purchase of expired domains
} catch (Throwable $e) {
if (!($e instanceof HttpExceptionInterface)) continue;
$this->sendEmailDomainUpdateError($domain, $watchList->getUser());
} catch (Throwable) {
$this->sendEmailDomainUpdateError($domain, $watchList->getUser());
continue;
}
/*