diff options
| author | adamhrv <adam@ahprojects.com> | 2019-03-14 15:09:44 +0100 |
|---|---|---|
| committer | adamhrv <adam@ahprojects.com> | 2019-03-14 15:09:44 +0100 |
| commit | df6db850a37d1a14a852b7932bef0c6bc5a2d27c (patch) | |
| tree | 0a85d6674598c936b20502a31fcb0c6ce2f82b86 /megapixels | |
| parent | f1ceb3953fae55a06c94a058f90ed278cf0240f5 (diff) | |
| parent | c826165945096a90902bb7a31db72eb0670ab388 (diff) | |
Merge branch 'master' of github.com:adamhrv/megapixels_dev
Diffstat (limited to 'megapixels')
| -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'] |
