From 0096f739260b9023e44f546bdb23ab82807a065a Mon Sep 17 00:00:00 2001 From: EWouters <6179932+EWouters@users.noreply.github.com> Date: Sun, 22 Sep 2024 20:18:35 +0200 Subject: [PATCH] Fix: Undefined variable --- backend/chainlit/step.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/chainlit/step.py b/backend/chainlit/step.py index bb8b7634f9..9d078c7f84 100644 --- a/backend/chainlit/step.py +++ b/backend/chainlit/step.py @@ -140,7 +140,7 @@ def sync_wrapper(*args, **kwargs): try: if result and not step.output: step.output = result - except: + except Exception as e: step.is_error = True step.output = str(e) return result