diff options
Diffstat (limited to 'sphinx/directives/other.py')
-rw-r--r-- | sphinx/directives/other.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sphinx/directives/other.py b/sphinx/directives/other.py index 38a332674..de2427d46 100644 --- a/sphinx/directives/other.py +++ b/sphinx/directives/other.py @@ -119,7 +119,7 @@ class TocTree(SphinxDirective): if url_re.match(ref) or ref == 'self': toctree['entries'].append((title, ref)) elif docname not in self.env.found_docs: - if excluded(self.env.doc2path(docname, None)): + if excluded(self.env.doc2path(docname, False)): message = __('toctree contains reference to excluded document %r') subtype = 'excluded' else: |