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()
|
conn.commit()
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Queue error event
|
# Queue error event
|
||||||
await event_queue.put({
|
await event_queue.put({
|
||||||
"type": "execution_failed",
|
"type": "execution_failed",
|
||||||
"error": str(e)
|
"error": str(e)
|
||||||
})
|
})
|
||||||
finally:
|
finally:
|
||||||
execution_complete = True
|
execution_complete = True
|
||||||
|
|
||||||
# Start workflow execution in background
|
# Start workflow execution in background
|
||||||
import asyncio
|
import asyncio
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user