From 9c2b5e6ef561139e90a125443fbd6e2a375b0718 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miha=20=C5=A0etina?= Date: Thu, 2 May 2024 20:01:59 +0200 Subject: [PATCH] Added additional info to log --- pkcs11_cryptography_keys/pkcs11_URI/pkcs11_URI.py | 4 ++++ 1 file changed, 4 insertions(+) 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):