mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Fix #7304: py domain: Improve warning messages on parsing failure
This commit is contained in:
parent
f85b870ad5
commit
d134b51927
@ -337,7 +337,8 @@ class PyObject(ObjectDescription):
|
|||||||
# it supports to represent optional arguments (ex. "func(foo [, bar])")
|
# it supports to represent optional arguments (ex. "func(foo [, bar])")
|
||||||
_pseudo_parse_arglist(signode, arglist)
|
_pseudo_parse_arglist(signode, arglist)
|
||||||
except NotImplementedError as exc:
|
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)
|
_pseudo_parse_arglist(signode, arglist)
|
||||||
else:
|
else:
|
||||||
if self.needs_arglist():
|
if self.needs_arglist():
|
||||||
|
Loading…
Reference in New Issue
Block a user