Skip to content
Permalink
Browse files

don't crash if there is no shortcodes/

  • Loading branch information
ralsina committed Dec 23, 2015
1 parent fee8046 commit 0bc826bfab62e6eb4057768643944e03243b1b08
Showing with 2 additions and 0 deletions.
  1. +2 −0 nikola/nikola.py
@@ -1295,6 +1295,8 @@ def url_replacer(self, src, dst, lang=None, url_type=None):

def _register_templated_shortcodes(self):
"""Register shortcodes provided by templates in shortcodes/ folder."""
if not os.path.isdir('shortcodes'):
return
for fname in os.listdir('shortcodes'):
name, ext = os.path.splitext(fname)
if ext == '.tmpl':

0 comments on commit 0bc826b

Please sign in to comment.
You can’t perform that action at this time.