diff options
| author | Jules Laplace <julescarbon@gmail.com> | 2019-03-14 02:50:24 +0100 |
|---|---|---|
| committer | Jules Laplace <julescarbon@gmail.com> | 2019-03-14 02:50:24 +0100 |
| commit | c826165945096a90902bb7a31db72eb0670ab388 (patch) | |
| tree | 7d4fd76f427468b8be3148c6b8fe4c70ec1d718a /megapixels/app/site | |
| parent | 8df493f6f9d18acfe5919cf257c2da0d2b30ab7a (diff) | |
| parent | 26646e6adf3833f6282e9515c14ad61e485440c0 (diff) | |
rebuild and add compare-csv-counts.py script
Diffstat (limited to 'megapixels/app/site')
| -rw-r--r-- | megapixels/app/site/parser.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py index 79093bc7..00470e4b 100644 --- a/megapixels/app/site/parser.py +++ b/megapixels/app/site/parser.py @@ -292,6 +292,9 @@ def parse_research_index(research_posts): content = "<div class='research_index'>" for post in research_posts: print(post) + if 'path' not in post: + print("No path attribute for post") + return "" s3_path = s3.make_s3_path(cfg.S3_SITE_PATH, post['path']) if 'image' in post: post_image = s3_path + post['image'] |
