From bb012837279c8c8d948f946fcff6acd727deece4 Mon Sep 17 00:00:00 2001 From: Lars Date: Mon, 13 Apr 2026 11:41:56 +0200 Subject: [PATCH] fix: Correct except/finally indentation in SSE endpoint --- backend/routers/prompts.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/routers/prompts.py b/backend/routers/prompts.py index 734f7a2..fcd524d 100644 --- a/backend/routers/prompts.py +++ b/backend/routers/prompts.py @@ -1562,13 +1562,13 @@ async def execute_unified_prompt_stream( conn.commit() except Exception as e: - # Queue error event - await event_queue.put({ - "type": "execution_failed", - "error": str(e) - }) - finally: - execution_complete = True + # Queue error event + await event_queue.put({ + "type": "execution_failed", + "error": str(e) + }) + finally: + execution_complete = True # Start workflow execution in background import asyncio