Merge pull request #80 from doordash/wiki-index-fix

Make rebuild_index() more robust
This commit is contained in:
Matthew Scragg 2015-09-26 06:59:08 -07:00
commit 459a9c2c59

View file

@ -25,6 +25,9 @@ def rebuild_index():
wiki = Wiki(app.config['WIKI_PATH'])
for entry in wiki.get_index():
page = wiki.get_page(entry['name'])
if not page:
# Some non-markdown files may have issues
continue
name = filename_to_cname(page['name'])
# TODO add email?
body = dict(name=name,