Skip to content

Commit

Permalink
Xtrigger validation: log traceback for unexpected user validation err…
Browse files Browse the repository at this point in the history
…ors (#6160)
  • Loading branch information
MetRonnie authored Jun 20, 2024
1 parent 61c1f28 commit 62527e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cylc/flow/xtrigger_mgr.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
)

from cylc.flow import LOG
from cylc.flow.exceptions import XtriggerConfigError
from cylc.flow.exceptions import WorkflowConfigError, XtriggerConfigError
import cylc.flow.flags
from cylc.flow.hostuserutil import get_user
from cylc.flow.subprocctx import add_kwarg_to_sig
Expand Down Expand Up @@ -362,6 +362,8 @@ def _try_xtrig_validate_func(
try:
xtrig_validate_func(bound_args.arguments)
except Exception as exc: # Note: catch all errors
if not isinstance(exc, WorkflowConfigError):
LOG.exception(exc)
raise XtriggerConfigError(label, signature_str, exc)

# BACK COMPAT: workflow_state_backcompat
Expand Down

0 comments on commit 62527e0

Please sign in to comment.