mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Closes #1673: fix crashes with nitpick_ignore and :doc: references.
This commit is contained in:
1
CHANGES
1
CHANGES
@@ -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)
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user