fix: don't raise when TNCC_CERTS is unset
When asn1crypto
isn't available, only raise if TNCC_CERTS
is set. That's the semantics suggested by the error message.
While I was there, using logging.warn()
causes a deprecation warning. Even Python 2.7 appears to have logging.warning()
, so use that instead.
Edited by Daniel Lenski