diff --git a/core/orchestrator.class.inc.php b/core/orchestrator.class.inc.php index 6a43f21..3af24e9 100644 --- a/core/orchestrator.class.inc.php +++ b/core/orchestrator.class.inc.php @@ -265,8 +265,13 @@ public function Synchronize($aCollectors) $bStopOnError = ($sStopOnError == 'yes'); /** @var \Collector $oCollector */ foreach ($aCollectors as $oCollector) { - Utils::SetCollector($oCollector, "Synchronize"); - $bResult = $oCollector->Synchronize(); + try { + Utils::SetCollector($oCollector, "Synchronize"); + $bResult = $oCollector->Synchronize(); + } catch (Exception $e) { + Utils::Log(LOG_ERR, sprintf('Synchronization exception: %s', $e->getMessage())); + $bResult = false; + } if (!$bResult) { if ($bStopOnError) { break;