From 9b451aab5b27e89949c62f87820ac2a8eac2f7ad Mon Sep 17 00:00:00 2001 From: Iman Aboheydary Date: Fri, 5 Apr 2024 10:58:12 +0200 Subject: [PATCH] Remove useless wrong error --- Model/WhitelistDefaultInstaller.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/Model/WhitelistDefaultInstaller.php b/Model/WhitelistDefaultInstaller.php index 09fbf6c..2cdd1d2 100644 --- a/Model/WhitelistDefaultInstaller.php +++ b/Model/WhitelistDefaultInstaller.php @@ -39,12 +39,16 @@ public function __construct( public function install(): void { foreach ($this->whitelistDefaultPool->getEntries() as $route => $data) { - $this->whitelistRepository->createEntry( - null, - $data['label'], - $route, - $data['strategy'] ?: 'default', - ); + try { + $this->whitelistRepository->createEntry( + null, + $data['label'], + $route, + $data['strategy'] ?: 'default', + ); + } catch (\Exception $e) { + // log here + } } } }