Skip to content

Commit

Permalink
fixed issue with subtopics returning none in some cases
Browse files Browse the repository at this point in the history
  • Loading branch information
assafelovic committed Jun 23, 2024
1 parent 95eb94c commit 66a3924
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/report_type/detailed_report/detailed_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ async def _initial_research(self):

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

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

0 comments on commit 66a3924

Please sign in to comment.