summaryrefslogtreecommitdiff
path: root/megapixels
diff options
context:
space:
mode:
authorAdam Harvey <adam@ahprojects.com>2019-02-28 19:01:59 +0100
committerAdam Harvey <adam@ahprojects.com>2019-02-28 19:01:59 +0100
commita65dc729ec0d0a1e2287d67fc5fe2fc7ed878fec (patch)
tree5bdbf2c815860d291ccd03a3a8c49df22d58bd62 /megapixels
parentae75bcedcef5d2a77bb333e49206969f6ff1eb9b (diff)
parente845766d970f4afefc2fc47367c3478413f98ff2 (diff)
merge
Diffstat (limited to 'megapixels')
-rw-r--r--megapixels/app/site/parser.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/megapixels/app/site/parser.py b/megapixels/app/site/parser.py
index c17d3b8a..ad4256ad 100644
--- a/megapixels/app/site/parser.py
+++ b/megapixels/app/site/parser.py
@@ -198,6 +198,8 @@ def format_metadata(section):
"""
meta = []
for line in section.split('\n'):
+ if ': ' not in line:
+ continue
key, value = line[2:].split(': ', 1)
meta.append("<div><div class='gray'>{}</div><div>{}</div></div>".format(key, value))
return "<div class='meta'>{}</div>".format(''.join(meta))