Don't die if some non-MD files are found in the wiki repo during rebuild_index()
This commit is contained in:
parent
08525c10ba
commit
1cf9295c78
|
@ -25,6 +25,9 @@ def rebuild_index():
|
||||||
wiki = Wiki(app.config['WIKI_PATH'])
|
wiki = Wiki(app.config['WIKI_PATH'])
|
||||||
for entry in wiki.get_index():
|
for entry in wiki.get_index():
|
||||||
page = wiki.get_page(entry['name'])
|
page = wiki.get_page(entry['name'])
|
||||||
|
if not page:
|
||||||
|
# Some non-markdown files may have issues
|
||||||
|
continue
|
||||||
name = filename_to_cname(page['name'])
|
name = filename_to_cname(page['name'])
|
||||||
# TODO add email?
|
# TODO add email?
|
||||||
body = dict(name=name,
|
body = dict(name=name,
|
||||||
|
|
Loading…
Reference in a new issue