mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #7267: autodoc: errormsg for invalid directive options has wrong location
This commit is contained in:
parent
0e89979355
commit
8b5686d87c
1
CHANGES
1
CHANGES
@ -91,6 +91,7 @@ Bugs fixed
|
||||
* C++, suppress warnings for directly dependent typenames in cross references
|
||||
generated automatically in signatures.
|
||||
* #5637: autodoc: Incorrect handling of nested class names on show-inheritance
|
||||
* #7267: autodoc: error message for invalid directive options has wrong location
|
||||
* #5637: inheritance_diagram: Incorrect handling of nested class names
|
||||
* #7139: ``code-block:: guess`` does not work
|
||||
|
||||
|
@ -137,7 +137,7 @@ class AutodocDirective(SphinxDirective):
|
||||
except (KeyError, ValueError, TypeError) as exc:
|
||||
# an option is either unknown or has a wrong type
|
||||
logger.error('An option to %s is either unknown or has an invalid value: %s' %
|
||||
(self.name, exc), location=(source, lineno))
|
||||
(self.name, exc), location=(self.env.docname, lineno))
|
||||
return []
|
||||
|
||||
# generate the output
|
||||
|
Loading…
Reference in New Issue
Block a user