prevent a catastrophic error in paper retrieval

This commit is contained in:
Bryan Bishop 2013-02-07 03:54:05 -06:00
parent 8a1b2c503e
commit 0ef3debca8
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ def download_url(url):
citation_title = find_citation_title(tree)
# 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
# wow, this seriously needs to be cleaned up