Fix attachment search by filename

This commit is contained in:
Victor Zemtsov 2022-08-13 16:06:09 +03:00
parent 14a17e0181
commit dac67fb970
1 changed files with 3 additions and 2 deletions

View File

@ -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(