Catch exceptions when trying to match filters in trigger handler

[PREMIUM-248]
This commit is contained in:
David Remer
2023-10-18 09:11:39 +03:00
committed by Aschepikov
parent 8f529491e8
commit dd103b81d7

View File

@ -82,7 +82,13 @@ class TriggerHandler {
$automationRun = new AutomationRun($automation->getId(), $automation->getVersionId(), $trigger->getKey(), $subjects);
$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;
}