diff --git a/web/Modules/Microweber/Jobs/UpdateWhitelabelToWebsites.php b/web/Modules/Microweber/Jobs/UpdateWhitelabelToWebsites.php index 948c142..0d51bf3 100644 --- a/web/Modules/Microweber/Jobs/UpdateWhitelabelToWebsites.php +++ b/web/Modules/Microweber/Jobs/UpdateWhitelabelToWebsites.php @@ -43,10 +43,14 @@ class UpdateWhitelabelToWebsites implements ShouldQueue foreach ($mwInstallations as $mwInstallation) { - $whitelabelApply = new MicroweberWhitelabelWebsiteApply(); - $whitelabelApply->setWebPath($mwInstallation->installation_path); - $whitelabelApply->setSharedPath($sharedAppPath); - $whitelabelApply->apply(); + try { + $whitelabelApply = new MicroweberWhitelabelWebsiteApply(); + $whitelabelApply->setWebPath($mwInstallation->installation_path); + $whitelabelApply->setSharedPath($sharedAppPath); + $whitelabelApply->apply(); + } catch (\Exception $e) { + // \Log::error('Error applying whitelabel to website: ' . $mwInstallation->installation_path); + } }