summaryrefslogtreecommitdiff
path: root/alot/commands
diff options
context:
space:
mode:
authorAnton Khirnov <anton@khirnov.net>2021-02-01 15:29:53 +0100
committerAnton Khirnov <anton@khirnov.net>2021-02-01 15:29:53 +0100
commit5f7571eeaf30f054b71327100caab2a15431cf66 (patch)
tree670b736116a3b3cd50fc5d5603f9c001e056d0be /alot/commands
parent788f69048ba28f0345d9128eddf0522a34d6db08 (diff)
Fix access to Attachment filename.
Diffstat (limited to 'alot/commands')
-rw-r--r--alot/commands/envelope.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index f7337968..4b5a1fcc 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -81,7 +81,7 @@ class UnattachCommand(Command):
if self.hint is not None:
for a in envelope.attachments:
- if self.hint in a.get_filename():
+ if a.filename and self.hint in a.filename():
envelope.attachments.remove(a)
else:
envelope.attachments = []