Skip to content

Commit e7b5b79

Browse files
committedJul 22, 2015
Create a compiler_meta dict if there isn’t any
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
1 parent 7031c54 commit e7b5b79

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed
 

‎nikola/post.py

+2
Original file line numberDiff line numberDiff line change
@@ -976,6 +976,8 @@ def get_meta(post, file_metadata_regexp=None, unslugify_titles=False, lang=None)
976976
file_metadata_regexp,
977977
unslugify_titles))
978978

979+
compiler_meta = {}
980+
979981
if getattr(post, 'compiler', None):
980982
compiler_meta = post.compiler.read_metadata(post, file_metadata_regexp, unslugify_titles, lang)
981983
meta.update(compiler_meta)

0 commit comments

Comments
 (0)
Please sign in to comment.