diff --git a/pkcs11_cryptography_keys/pkcs11_URI/pkcs11_URI.py b/pkcs11_cryptography_keys/pkcs11_URI/pkcs11_URI.py index 292cd4c..17001f5 100644 --- a/pkcs11_cryptography_keys/pkcs11_URI/pkcs11_URI.py +++ b/pkcs11_cryptography_keys/pkcs11_URI/pkcs11_URI.py @@ -244,6 +244,10 @@ def get_session( if mi.flags & mf != 0: op = mi.flags_dict[mf].replace("CKF_", "") self._operations.append((m, op)) + else: + self._logger.info("Session could not be opened.") + else: + self._logger.info("Required slot was not found.") return session def gen_operations(self):