From fac0921acff20d8be78dc66a1186b7495aee8774 Mon Sep 17 00:00:00 2001 From: OzzieIsaacs Date: Mon, 13 Aug 2018 17:40:11 +0200 Subject: [PATCH] Fix in exception of emailing --- cps/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cps/worker.py b/cps/worker.py index 863dcd0e..39a7cb56 100644 --- a/cps/worker.py +++ b/cps/worker.py @@ -464,7 +464,7 @@ class WorkerThread(threading.Thread): sys.stderr = org_stderr - except (socket.error, smtplib.SMTPRecipientsRefused, smtplib.SMTPException): + except (socket.error, smtplib.SMTPRecipientsRefused, smtplib.SMTPException) as e: self.queue[self.current]['status'] = STAT_FAIL self.UIqueue[self.current]['status'] = _('Failed') self.UIqueue[self.current]['progress'] = "100 %"