Only dispkay failure to use cryptography at a higher verbosity

Fixes #17982
This commit is contained in:
Toshio Kuratomi 2016-10-12 09:58:11 -07:00
parent 6be09ee866
commit bf3d546d9a

View file

@ -83,9 +83,9 @@ try:
except ImportError:
pass
except Exception as e:
display.warning("Optional dependency 'cryptography' raised an exception, falling back to 'Crypto'")
display.vvvv("Optional dependency 'cryptography' raised an exception, falling back to 'Crypto'.")
import traceback
display.debug("Traceback from import of cryptography was {0}".format(traceback.format_exc()))
display.vvvv("Traceback from import of cryptography was {0}".format(traceback.format_exc()))
HAS_ANY_PBKDF2HMAC = HAS_PBKDF2 or HAS_PBKDF2HMAC