We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0eb7222 + c875b02 commit 98a1cd6Copy full SHA for 98a1cd6
src/curategpt/wrappers/literature/pubmed_wrapper.py
@@ -128,7 +128,7 @@ def external_search(
128
data = response.json()
129
130
# Extract PubMed IDs from the response
131
- if "esearchresult" not in data:
+ if "esearchresult" not in data or "idlist" not in data["esearchresult"]:
132
logger.error(f"Failed to find results for {text}")
133
logger.error(f"Data: {data}")
134
return []
0 commit comments