Skip to content

Commit

Permalink
Merge pull request #231 from iranimij/remove-useless-wrong-error
Browse files Browse the repository at this point in the history
Remove useless wrong error
  • Loading branch information
rikwillems committed Apr 25, 2024
2 parents d69b800 + 9b451aa commit 782075a
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions Model/WhitelistDefaultInstaller.php
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 782075a

Please sign in to comment.