mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-07-27 07:01:22 -07:00
Only show the traceback for importing cryptography when in Ansible Debug. (#16795)
This commit is contained in:
parent
671f9c3d15
commit
84c1697271
1 changed files with 1 additions and 1 deletions
|
@ -79,7 +79,7 @@ except ImportError:
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
display.warning("Optional dependency 'cryptography' raised an exception, falling back to 'Crypto'")
|
display.warning("Optional dependency 'cryptography' raised an exception, falling back to 'Crypto'")
|
||||||
import traceback
|
import traceback
|
||||||
traceback.print_exc()
|
display.debug("Traceback from import of cryptography was {0}".format(traceback.format_exc()))
|
||||||
|
|
||||||
from ansible.compat.six import PY3
|
from ansible.compat.six import PY3
|
||||||
from ansible.utils.unicode import to_unicode, to_bytes
|
from ansible.utils.unicode import to_unicode, to_bytes
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue