mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2026-10-25 14:40:22 -05:00
Merge pull request #7306 from tk0miya/7304_improve_warnigs_on_parse_failure
Fix #7304: py domain: Improve warning messages on parsing failure
This commit is contained in:
1 file changed
+2
-1
@@ -337,7 +337,8 @@ class PyObject(ObjectDescription):
|
||||
# it supports to represent optional arguments (ex. "func(foo [, bar])")
|
||||
_pseudo_parse_arglist(signode, arglist)
|
||||
except NotImplementedError as exc:
|
||||
logger.warning("could not parse arglist (%r): %s", arglist, exc)
|
||||
logger.warning("could not parse arglist (%r): %s", arglist, exc,
|
||||
location=signode)
|
||||
_pseudo_parse_arglist(signode, arglist)
|
||||
else:
|
||||
if self.needs_arglist():
|
||||
|
||||
Reference in new issue
Block a user