Skip to content

Commit

Permalink
Fix attachment search by filename
Browse files Browse the repository at this point in the history
  • Loading branch information
viczem committed Aug 13, 2022
1 parent 14a17e0 commit dac67fb
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions plugins/lookup/keepass.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit dac67fb

Please sign in to comment.