diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-02-12 22:34:19 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-02-12 22:34:19 +0100 |
| commit | 63133aa1bda1ef101772b1d85e27b8d320d32412 (patch) | |
| tree | 1bc63da57361bd79197dce7201f4cd101639369e /scraper/s2-papers.py | |
| parent | d97107ed5b242a3913df0d88ef4d8374b66ca25c (diff) | |
re-running reports..
Diffstat (limited to 'scraper/s2-papers.py')
| -rw-r--r-- | scraper/s2-papers.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/scraper/s2-papers.py b/scraper/s2-papers.py index 58aebcc6..744454b7 100644 --- a/scraper/s2-papers.py +++ b/scraper/s2-papers.py @@ -28,7 +28,11 @@ def fetch_papers(): name = line[1] title = line[2] paper_id = line[3] + if paper_id == '': + continue paper = fetch_paper(s2, paper_id) + if paper is None: + continue db_paper = load_paper(paper_id) pdf_link = db_paper.pdf_link if db_paper else "" |
