danielfrg / pelican-jupyter

Pelican plugin for blogging with Jupyter/IPython Notebooks
Apache License 2.0
423 stars 105 forks source link

Fix unbound local error for `md_reader` #102

Closed nayyarv closed 5 years ago

nayyarv commented 5 years ago

Hi

I was getting this error while trying to convert my ipynb.

ERROR: Could not process ./Tosser.ipynb
  | UnboundLocalError: local variable 'md_reader' referenced before assignment

Having a look, this only happens for files that use a markdown cell for the metadata. This was a simple fix and I thought I'd PR this in.

Let me know if there are any issues/concerns and I can squash for you to merge