Skip to content

Commit

Permalink
bug fix for admin breaking then initiation of ps account fails
Browse files Browse the repository at this point in the history
  • Loading branch information
GytisZum committed Jun 25, 2024
1 parent f103a6f commit 9491d26
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion controllers/admin/AdminMollieSettingsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,11 @@ public function postProcess()
$this->module->getLocalPath() . 'views/templates/admin/logo.tpl'
);

$this->initCloudSyncAndPsAccounts();
try {
$this->initCloudSyncAndPsAccounts();
} catch (Exception $e) {
// Note: we do not want to break the admin page if there is an error then initiating PS dependencies
}

/** @var \Mollie\Repository\ModuleRepository $moduleRepository */
$moduleRepository = $this->module->getService(\Mollie\Repository\ModuleRepository::class);
Expand Down

0 comments on commit 9491d26

Please sign in to comment.