prevent a catastrophic error in paper retrieval
This commit is contained in:
parent
8a1b2c503e
commit
0ef3debca8
@ -165,7 +165,7 @@ def download_url(url):
|
|||||||
citation_title = find_citation_title(tree)
|
citation_title = find_citation_title(tree)
|
||||||
|
|
||||||
# aip.org sucks, citation_pdf_url is wrong
|
# aip.org sucks, citation_pdf_url is wrong
|
||||||
if "link.aip.org/" in citation_pdf_url:
|
if citation_pdf_url and "link.aip.org/" in citation_pdf_url:
|
||||||
citation_pdf_url = None
|
citation_pdf_url = None
|
||||||
|
|
||||||
# wow, this seriously needs to be cleaned up
|
# wow, this seriously needs to be cleaned up
|
||||||
|
Loading…
Reference in New Issue
Block a user