From 260806db1a5611c9a9b525e385ae10633a2791b1 Mon Sep 17 00:00:00 2001 From: Lina Tang Date: Thu, 25 Apr 2024 17:21:19 +0800 Subject: [PATCH] Fix tests --- src/promptflow-core/promptflow/executor/_script_executor.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/promptflow-core/promptflow/executor/_script_executor.py b/src/promptflow-core/promptflow/executor/_script_executor.py index 442de15a509..04fed87db5e 100644 --- a/src/promptflow-core/promptflow/executor/_script_executor.py +++ b/src/promptflow-core/promptflow/executor/_script_executor.py @@ -201,7 +201,7 @@ def _exec_aggregation( log_metric(k, v) else: logger.warning("The output of aggregation function isn't a dictionary, skip the metrices update.") - except Exception: + except Exception as e: error_type_and_message = f"({e.__class__.__name__}) {e}" e = ScriptExecutionError( message_format="Execution failure in '{func_name}': {error_type_and_message}",