From 6cbf0bd959a97fef148759aa43c7256a87bb178e Mon Sep 17 00:00:00 2001 From: Deepak K <89829542+Deepak-Kesavan@users.noreply.github.com> Date: Fri, 10 Apr 2026 07:44:10 +0530 Subject: [PATCH] UN-2980 Handle null response --- workers/executor/executors/answer_prompt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workers/executor/executors/answer_prompt.py b/workers/executor/executors/answer_prompt.py index 89936fe598..c22c8aaafd 100644 --- a/workers/executor/executors/answer_prompt.py +++ b/workers/executor/executors/answer_prompt.py @@ -333,7 +333,7 @@ def handle_json( return parsed_data = repair_json_with_best_structure(answer) - if isinstance(parsed_data, str): + if not isinstance(parsed_data, (dict, list)): logger.error("Error parsing response to JSON") structured_output[prompt_key] = {} return