Skip to content
Permalink
Browse files

Fix #2401 -- return slug when post not found

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jul 25, 2016
1 parent ef69d43 commit f0cf1c75527c1f8f6c6f6c93f2160b75d11704c2
Showing with 1 addition and 1 deletion.
  1. +1 −1 nikola/plugins/compile/rest/doc.py
@@ -66,7 +66,7 @@ def _doc_link(rawtext, text, options={}, content=[]):
if post is None:
raise ValueError
except ValueError:
return False, False, None, None, None
return False, False, None, None, slug

if not has_explicit_title:
# use post's title as link's text

0 comments on commit f0cf1c7

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