Skip to content

armgit / burr

Public Imported from GitHub
0

Build applications that make decisions (chatbots, agents, simulations, etc...). Monitor, trace, persist, and execute on your own infrastructure.

Fixes double-call to exception logging

elijahbenizzyc31d67ad1914
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]: