[books] Fix no result for detail lookup
This commit is contained in:
@ -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:
|
||||
|
||||
Reference in New Issue
Block a user