Fix missing parentheses in is_complete method call

The is_complete method was incorrectly referenced without parentheses, causing a potential runtime error. This fix ensures proper method invocation and prevents the loop from behaving incorrectly.
This commit is contained in:
ThomasTaroni 2025-04-25 19:51:38 +02:00
parent cb5fe35d24
commit b16305e369

View file

@ -52,7 +52,7 @@ async def get_report_endpoint(request: ReportRequest):
# Wait briefly to avoid aggressive looping
await asyncio.sleep(0.1)
# Stop if processing is complete and no more logs remain
if generator.researcher.is_complete:
if generator.researcher.is_complete():
break
except Exception as e: