[books] Fix no result for detail lookup

This commit is contained in:
2025-02-23 23:08:47 -05:00
parent e95b6f50dc
commit 8c600d6b4b

View File

@ -38,6 +38,9 @@ def lookup_paper_from_semantic(title: str) -> dict:
result = json.loads(response.content)
if not result:
return paper_dict
page_str = result.get("journal", {}).get("pages")
if page_str:
try: