Catch exceptions when trying to match filters in trigger handler
[PREMIUM-248]
This commit is contained in:
@ -82,7 +82,13 @@ class TriggerHandler {
|
|||||||
$automationRun = new AutomationRun($automation->getId(), $automation->getVersionId(), $trigger->getKey(), $subjects);
|
$automationRun = new AutomationRun($automation->getId(), $automation->getVersionId(), $trigger->getKey(), $subjects);
|
||||||
$stepRunArgs = new StepRunArgs($automation, $automationRun, $step, $subjectEntries, 1);
|
$stepRunArgs = new StepRunArgs($automation, $automationRun, $step, $subjectEntries, 1);
|
||||||
|
|
||||||
if (!$this->filterHandler->matchesFilters($stepRunArgs)) {
|
$match = false;
|
||||||
|
try {
|
||||||
|
$match = $this->filterHandler->matchesFilters($stepRunArgs);
|
||||||
|
} catch (Exceptions\Exception $e) {
|
||||||
|
;
|
||||||
|
}
|
||||||
|
if (!$match) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user