Skip to content

Commit 13c482d

Browse files
author
Michael Lazar
committed
key_handles is a list of tuples
1 parent 9a9c41d commit 13c482d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyhsm/ksm/yubikey_ksm.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,7 @@ def load_aead(self, public_id):
220220
try:
221221
s = sqlalchemy.select([self.aead_table]).where(
222222
(self.aead_table.c.public_id == public_id)
223-
& self.aead_table.c.keyhandle.in_(self.key_handles.values()))
223+
& self.aead_table.c.keyhandle.in_([kh[1] for kh in self.key_handles]))
224224
result = connection.execute(s)
225225

226226
for row in result:

0 commit comments

Comments
 (0)