Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
read_metadata typo fixes
  • Loading branch information
Kwpolska committed Feb 2, 2015
1 parent c87ffc6 commit 2342646
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nikola/plugins/compile/ipynb/__init__.py
Expand Up @@ -78,8 +78,8 @@ def read_metadata(self, post, file_metadata_regexp=None, unslugify_titles=False,
source = post.source_path
with io.open(source, "r", encoding="utf8") as in_file:
nb_json = nbformat.read(in_file, current_nbformat)
# metadata shoudl always exist, but we never know
# if Someone craft an ipynb by hand.
# metadata should always exist, but we never know if
# the user crafted the ipynb by hand and did not add it.
return nb_json.get('metadata', {}).get('nikola', {})

def create_post(self, path, **kw):
Expand Down

0 comments on commit 2342646

Please sign in to comment.