Fix attachment search by filename
This commit is contained in:
parent
14a17e0181
commit
dac67fb970
|
@ -317,8 +317,9 @@ def _keepass_socket(kdbx, kdbx_key, sock_path, ttl=60, kdbx_password=None):
|
|||
|
||||
prop_key = arg[2]
|
||||
attachment = None
|
||||
for attachment in entry.attachments:
|
||||
if attachment.filename == prop_key:
|
||||
for _ in entry.attachments:
|
||||
if _.filename == prop_key:
|
||||
attachment = _
|
||||
break
|
||||
if attachment is None:
|
||||
conn.send(
|
||||
|
|
Loading…
Reference in New Issue