From 9491d262805bf34ba906c9c20bb3b16acc03aaf7 Mon Sep 17 00:00:00 2001 From: Gytautas Date: Tue, 25 Jun 2024 11:49:06 +0300 Subject: [PATCH] bug fix for admin breaking then initiation of ps account fails --- controllers/admin/AdminMollieSettingsController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/controllers/admin/AdminMollieSettingsController.php b/controllers/admin/AdminMollieSettingsController.php index 614bc18c7..70cec3fa1 100644 --- a/controllers/admin/AdminMollieSettingsController.php +++ b/controllers/admin/AdminMollieSettingsController.php @@ -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);