mirror of https://github.com/langgenius/dify.git
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:
parent
ad2b910d73
commit
b07e80e6ae
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue