Skip to content

Commit

Permalink
Added additional info to log
Browse files Browse the repository at this point in the history
  • Loading branch information
msetina committed May 2, 2024
1 parent e8e36b3 commit 9c2b5e6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkcs11_cryptography_keys/pkcs11_URI/pkcs11_URI.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 9c2b5e6

Please sign in to comment.