mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-22 21:00:22 -07:00
Python 3 fixes for ansible-doc.
This commit is contained in:
parent
b18263cf36
commit
88dbb5a630
2 changed files with 5 additions and 5 deletions
|
@ -101,7 +101,7 @@ class DocCLI(CLI):
|
|||
try:
|
||||
doc, plainexamples, returndocs = module_docs.get_docstring(filename, verbose=(self.options.verbosity > 0))
|
||||
except:
|
||||
display.vvv(traceback.print_exc())
|
||||
display.vvv(traceback.format_exc())
|
||||
display.error("module %s has a documentation error formatting or is missing documentation\nTo see exact traceback use -vvv" % module)
|
||||
continue
|
||||
|
||||
|
@ -134,7 +134,7 @@ class DocCLI(CLI):
|
|||
# probably a quoting issue.
|
||||
raise AnsibleError("Parsing produced an empty object.")
|
||||
except Exception as e:
|
||||
display.vvv(traceback.print_exc())
|
||||
display.vvv(traceback.format_exc())
|
||||
raise AnsibleError("module %s missing documentation (or could not parse documentation): %s\n" % (module, str(e)))
|
||||
|
||||
if text:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue