From 134d791f94dec9bf06b98a9881495a435c191bd3 Mon Sep 17 00:00:00 2001 From: Patrick Totzke Date: Thu, 31 Aug 2017 15:19:15 +0100 Subject: pep8 fixes This mostly shortens lines down to <=79 chars and fixes some other small things I found using the pep8 tool. --- alot/commands/envelope.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'alot/commands/envelope.py') 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: -- cgit v1.2.3