[fix] Corrections ruff CI (UP017/UP041/UP012/I001/F401/FURB162) : backend/routers/realtime.py

This commit is contained in:
2026-10-27 22:57:50 -04:00
parent f5ca656c04
commit 414ec69c0a
+1 -1
View File
@@ -49,7 +49,7 @@ async def api_events(current_user=Depends(require_auth)):
try: try:
msg = await asyncio.wait_for(queue.get(), timeout=30.0) msg = await asyncio.wait_for(queue.get(), timeout=30.0)
yield f"event: {msg['event']}\ndata: {msg['data']}\n\n" yield f"event: {msg['event']}\ndata: {msg['data']}\n\n"
except asyncio.TimeoutError: except TimeoutError:
# Keepalive comment # Keepalive comment
yield ": keepalive\n\n" yield ": keepalive\n\n"
except asyncio.CancelledError: except asyncio.CancelledError: