mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 05:42:50 +00:00
Python 3 fixes for ansible-doc.
This commit is contained in:
committed by
Toshio Kuratomi
parent
b18263cf36
commit
88dbb5a630
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user