Closes #1673: fix crashes with nitpick_ignore and :doc: references.

This commit is contained in:
Georg Brandl committed 2015-01-15 08:41:18 +01:00
1 parent 5bee0aac0c
commit 28683a36c4
2 files changed
+3 -1

No files matched your search

+1
View File
@@ -27,6 +27,7 @@ Bugs fixed
* #1610: Sphinx cause AttributeError when MeCab search option is enabled and
python-mecab is not installed.
* #1674: Do not crash if a module's ``__all__`` is not a list of strings.
* #1673: Fix crashes with :confval:`nitpick_ignore` and ``:doc:`` references.
Release 1.2.3 (released Sep 1, 2014)
+2 -1
View File
@@ -1406,7 +1406,8 @@ class BuildEnvironment:
if (dtype, target) in self._nitpick_ignore:
warn = False
# for "std" types also try without domain name
if domain.name == 'std' and (typ, target) in self._nitpick_ignore:
if (not domain or domain.name == 'std') and \
(typ, target) in self._nitpick_ignore:
warn = False
if not warn:
return