Fix #7304: py domain: Improve warning messages on parsing failure

This commit is contained in:
Takeshi KOMIYA 2020-03-14 13:54:49 +09:00
parent f85b870ad5
commit d134b51927

View File

@ -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():