summaryrefslogtreecommitdiff
path: root/alot/commands/envelope.py
diff options
context:
space:
mode:
Diffstat (limited to 'alot/commands/envelope.py')
-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 44e1f686..032248f7 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -368,7 +368,7 @@ class SignCommand(Command):
envelope.sign = sign
# try to find key if hint given as parameter
- if self.action in ['sign', 'toggle']:
+ if sign:
if len(self.keyid) > 0:
keyid = str(' '.join(self.keyid))
try: