From f5e9e0803d952157afe3362edfa96716725e381d Mon Sep 17 00:00:00 2001 From: Anton Khirnov Date: Sat, 15 May 2021 13:52:26 +0200 Subject: commands/envelope: fix accessing the attachment filename --- alot/commands/envelope.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py index 52232a3c..4b485425 100644 --- a/alot/commands/envelope.py +++ b/alot/commands/envelope.py @@ -82,7 +82,7 @@ class UnattachCommand(Command): if self.hint is not None: for a in envelope.attachments: - if a.filename and self.hint in a.filename(): + if a.filename and self.hint in a.filename: envelope.attachments.remove(a) else: envelope.attachments = [] -- cgit v1.2.3