Skip to content

Commit 66a3924

Browse files
committed
fixed issue with subtopics returning none in some cases
1 parent 95eb94c commit 66a3924

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/report_type/detailed_report/detailed_report.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async def _initial_research(self):
5959

6060
async def _get_all_subtopics(self) -> list:
6161
subtopics = await self.main_task_assistant.get_subtopics()
62-
return subtopics.dict()["subtopics"]
62+
return subtopics.dict().get("subtopics", [])
6363

6464
async def _generate_subtopic_reports(self, subtopics: list) -> tuple:
6565
subtopic_reports = []

0 commit comments

Comments
 (0)