Skip to content

Commit

Permalink
MAke tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
ralsina committed Mar 18, 2018
1 parent 5e84a44 commit 3b695e5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nikola/plugins/compile/markdown/__init__.py
Expand Up @@ -152,7 +152,7 @@ def create_post(self, path, **kw):

def read_metadata(self, post, lang=None):
"""Read the metadata from a post, and return a metadata dict."""
lang = lang or self.site.config['DEFAULT_LANGUAGE']
lang = lang or self.site.config.get('DEFAULT_LANGUAGE', 'en')
if not self.supports_metadata:
return {}
if Markdown is None:
Expand Down

0 comments on commit 3b695e5

Please sign in to comment.