fix: throw an exception when UpdateRdapServers fail

This commit is contained in:
Maël Gangloff
2024-07-23 18:11:56 +02:00
parent 4334ad1f37
commit 7775273907
2 changed files with 1 additions and 3 deletions

View File

@@ -36,7 +36,6 @@ final readonly class UpdateRdapServersHandler
} catch (Throwable $throwable) {
$throws[] = $throwable;
}
try {
$this->RDAPService->updateGTldListICANN();
} catch (Throwable $throwable) {
@@ -47,6 +46,6 @@ final readonly class UpdateRdapServersHandler
} catch (Throwable $throwable) {
$throws[] = $throwable;
}
if (!empty($throwable)) throw $throws[0];
if (!empty($throws)) throw $throws[0];
}
}