diff --git a/src/MessageHandler/ProcessWatchListTriggerHandler.php b/src/MessageHandler/ProcessWatchListTriggerHandler.php index 4fd2e1e..ac1f11e 100644 --- a/src/MessageHandler/ProcessWatchListTriggerHandler.php +++ b/src/MessageHandler/ProcessWatchListTriggerHandler.php @@ -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; } /*