diff --git a/src/seclab_taskflow_agent/runner.py b/src/seclab_taskflow_agent/runner.py index 7c56bea2..bf02e3a7 100644 --- a/src/seclab_taskflow_agent/runner.py +++ b/src/seclab_taskflow_agent/runner.py @@ -656,8 +656,8 @@ async def _deploy(ra: dict, pp: str) -> bool: complete = True for result in task_results: - if isinstance(result, Exception): - logging.error(f"Caught exception in Gather: {result}") + if not isinstance(result, bool): + logging.error(f"Caught exception in Gather: {result}", exc_info=result) result = False complete = result and complete return complete