summaryrefslogtreecommitdiff
path: root/alot/commands/envelope.py
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2017-08-31 15:19:15 +0100
committerPatrick Totzke <patricktotzke@gmail.com>2017-09-01 15:33:15 +0100
commit134d791f94dec9bf06b98a9881495a435c191bd3 (patch)
tree598cb50b34a1e8346c114dbf50c0a013cb3d5f48 /alot/commands/envelope.py
parent0df1c905aee10308069d9db9e396714feabc4ce4 (diff)
pep8 fixes
This mostly shortens lines down to <=79 chars and fixes some other small things I found using the pep8 tool.
Diffstat (limited to 'alot/commands/envelope.py')
-rw-r--r--alot/commands/envelope.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/alot/commands/envelope.py b/alot/commands/envelope.py
index 4d2963ee..fb2d0b7a 100644
--- a/alot/commands/envelope.py
+++ b/alot/commands/envelope.py
@@ -124,9 +124,8 @@ class SaveCommand(Command):
return
if account.draft_box is None:
- ui.notify(
- 'abort: account <%s> has no draft_box set.' % envelope.get('From'),
- priority='error')
+ msg = 'abort: Account for {} has no draft_box'
+ ui.notify(msg.format(account.address), priority='error')
return
mail = envelope.construct_mail()
@@ -511,8 +510,8 @@ class SignCommand(Command):
return
if not acc.gpg_key:
envelope.sign = False
- ui.notify('Account for {} has no gpg key'.format(acc.address),
- priority='error')
+ msg = 'Account for {} has no gpg key'
+ ui.notify(msg.format(acc.address), priority='error')
return
envelope.sign_key = acc.gpg_key
else: