Skip to content

Commit

Permalink
handle default correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Oct 3, 2013
1 parent 839b6a9 commit d391281
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nikola/post.py
Original file line number Diff line number Diff line change
Expand Up @@ -601,7 +601,8 @@ def get_meta(post, file_metadata_regexp=None,
# two-file posts too. It doesn't because if there is anything
# in default_metadata we would return in the previous return

meta.update(default_metadata)
if default_metadata is not None:
meta.update(default_metadata)

post.is_two_file = False

Expand Down

0 comments on commit d391281

Please sign in to comment.