From c31d67ad1914e58d9f127d422349af8af2a764f0 Mon Sep 17 00:00:00 2001 From: elijahbenizzy Date: Wed, 14 Feb 2024 13:37:56 -0800 Subject: [PATCH] Fixes double-call to exception logging --- burr/core/application.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/burr/core/application.py b/burr/core/application.py index 9ca53f0c..3571404c 100644 --- a/burr/core/application.py +++ b/burr/core/application.py @@ -129,7 +129,7 @@ def _format_error_message(action: Action, input_state: State) -> str: input_string = _create_dict_string(input_state.get_all()) message += "\n> State (at time of action):\n" + input_string border = "*" * 80 - logger.exception("\n" + border + "\n" + message + "\n" + border) + return "\n" + border + "\n" + message + "\n" + border def _run_single_step_action(action: SingleStepAction, state: State) -> Tuple[dict, State]: