[fix] Corrections ruff CI (UP017/UP041/UP012/I001/F401/FURB162) : backend/bookslm_routes.py
This commit is contained in:
@@ -591,7 +591,7 @@ async def api_bookslm_agent(
|
|||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
kind, item = await asyncio.wait_for(queue.get(), timeout=0.25)
|
kind, item = await asyncio.wait_for(queue.get(), timeout=0.25)
|
||||||
except asyncio.TimeoutError:
|
except TimeoutError:
|
||||||
if run_task.done():
|
if run_task.done():
|
||||||
break
|
break
|
||||||
continue
|
continue
|
||||||
|
|||||||
Reference in New Issue
Block a user