Skip to content

Commit

Permalink
Remove useless wrong error
Browse files Browse the repository at this point in the history
  • Loading branch information
Iman Aboheydary committed Apr 5, 2024
1 parent 760bbd3 commit 9b451aa
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Model/WhitelistDefaultInstaller.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}
}
}

0 comments on commit 9b451aa

Please sign in to comment.