summaryrefslogtreecommitdiff
path: root/alot/commands
diff options
context:
space:
mode:
authorLucas Hoffmann <l-m-h@web.de>2016-07-14 14:31:24 +0200
committerLucas Hoffmann <l-m-h@web.de>2016-12-09 11:26:19 +0100
commit84c79143dcf0a56112d8703f24052ca1f5f2832c (patch)
treee824421a44e77464f262f344bc0f4b87d610ea0c /alot/commands
parentfe748a7f47fb61d46dd88c270c2329e6ff19a895 (diff)
Fix except syntax
Diffstat (limited to 'alot/commands')
-rw-r--r--alot/commands/envelope.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index 64d5edea..2c35c2aa 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -204,7 +204,7 @@ class SendCommand(Command):
self.mail = self.envelope.construct_mail()
self.mail['Date'] = email.Utils.formatdate(localtime=True)
self.mail = email_as_string(self.mail)
- except GPGProblem, e:
+ except GPGProblem as e:
ui.clear_notify([clearme])
ui.notify(e.message, priority='error')
return
@@ -487,7 +487,7 @@ class SignCommand(Command):
keyid = str(' '.join(self.keyid))
try:
key = crypto.get_key(keyid, validate=True, sign=True)
- except GPGProblem, e:
+ except GPGProblem as e:
envelope.sign = False
ui.notify(e.message, priority='error')
return