From 8716054dcfb4ce5070e27a2245ed855e522cdfec Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Sat, 13 Jan 2018 14:11:59 +0100 Subject: [PATCH] Fix #436 --- cps/helper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cps/helper.py b/cps/helper.py index 773dac35..37d213c9 100755 --- a/cps/helper.py +++ b/cps/helper.py @@ -164,8 +164,8 @@ def send_raw_email(kindle_mail, msg): try: timeout = 600 # set timeout to 5mins - org_stderr = smtplib.stderr - smtplib.stderr = StderrLogger() + org_stderr = sys.stderr + sys.stderr = StderrLogger() if use_ssl == 2: mailserver = smtplib.SMTP_SSL(settings["mail_server"], settings["mail_port"], timeout)