fix: Correct except/finally indentation in SSE endpoint
This commit is contained in:
parent
bc60b9f5c9
commit
bb01283727
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user