fix(trigger): update error type for event handling in trigger manager

- Changed the error type check from "TriggerIgnoreEventError" to "EventIgnoreError" in the `TriggerManager` class to improve clarity in error handling during trigger invocations.
This commit is contained in:
Harry 2025-10-15 17:14:44 +08:00
parent ad2b910d73
commit b07e80e6ae
1 changed files with 1 additions and 1 deletions

View File

@ -185,7 +185,7 @@ class TriggerManager:
request=request,
)
except PluginInvokeError as e:
if e.get_error_type() == "TriggerIgnoreEventError":
if e.get_error_type() == "EventIgnoreError":
return TriggerInvokeEventResponse(variables={}, cancelled=True)
logger.exception("Failed to invoke trigger event")
raise TriggerPluginInvokeError(description=e.get_error_message()) from e