Skip to content

Commit

Permalink
Merge pull request #37 from blag/quick-fix
Browse files Browse the repository at this point in the history
Quick fix for typo that snuck in
  • Loading branch information
stephenmcd committed Mar 22, 2017
2 parents 4a03a3b + b3e35b1 commit 3b37325
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions email_extras/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ def has_pgp_key(addr):
# Encrypts body if recipient has a gpg key installed.
def encrypt_if_key(body, addr_list):
if has_pgp_key(addr_list[0]):
encrypt_result = gpg.encrypt(body, addr_list[0],
always_trust=ALWAYS_TRUST)
encrypted = gpg.encrypt(body, addr_list[0],
always_trust=ALWAYS_TRUST)
if encrypted == "" and body != "": # encryption failed
raise EncryptionFailedError("Encrypting mail to %s failed.",
addr_list[0])
Expand Down

0 comments on commit 3b37325

Please sign in to comment.