From c4a43999ac2a6864474059f11f075db639927f5a Mon Sep 17 00:00:00 2001 From: "Christopher J. Markiewicz" Date: Mon, 14 Mar 2022 14:28:56 -0400 Subject: [PATCH] FIX: Allow workflows to raise exception --- fitlins/cli/run.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/fitlins/cli/run.py b/fitlins/cli/run.py index 38dda5da..c6961039 100755 --- a/fitlins/cli/run.py +++ b/fitlins/cli/run.py @@ -406,8 +406,9 @@ def run_fitlins(argv=None): if not opts.reports_only: try: fitlins_wf.run(**plugin_settings) - except Exception: - retcode = 1 + except Exception as e: + logger.critical(f"FitLins failed: {e}") + raise run_context = { 'version': __version__,