diff options
Diffstat (limited to 'alot')
-rw-r--r-- | alot/account.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/alot/account.py b/alot/account.py index f8438564..a28519d1 100644 --- a/alot/account.py +++ b/alot/account.py @@ -348,7 +348,9 @@ class SendmailAccount(Account): try: # make sure self.mail is a string - out, *_ = await call_cmd_async(cmdlist, stdin=str(mail)) + out, err, code = await call_cmd_async(cmdlist, stdin=str(mail)) + if code != 0: + raise Exception except Exception as e: logging.error(str(e)) raise SendingMailFailed(str(e)) |