mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-07 22:02:50 +00:00
Do not use str() on exceptions (#46950)
This commit is contained in:
@@ -274,7 +274,7 @@ class DocCLI(CLI):
|
||||
except Exception as e:
|
||||
display.vvv(traceback.format_exc())
|
||||
raise AnsibleError(
|
||||
"%s %s missing documentation (or could not parse documentation): %s\n" % (plugin_type, plugin, str(e)))
|
||||
"%s %s missing documentation (or could not parse documentation): %s\n" % (plugin_type, plugin, to_native(e)))
|
||||
|
||||
def find_plugins(self, path, ptype):
|
||||
|
||||
|
||||
Reference in New Issue
Block a user