From 397cd987cbbca2f63fc0a84a935747da37724690 Mon Sep 17 00:00:00 2001 From: Ghighi Eftimie Date: Tue, 4 Oct 2022 20:51:29 +0300 Subject: [PATCH] added try except block for send_gmail_email method --- cps/tasks/mail.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cps/tasks/mail.py b/cps/tasks/mail.py index be240c79..364356fe 100755 --- a/cps/tasks/mail.py +++ b/cps/tasks/mail.py @@ -164,6 +164,7 @@ class TaskEmail(CalibreTask): self.send_standard_email(msg) else: self.send_gmail_email(msg) + self._handleSuccess() except MemoryError as e: log.error_or_exception(e, stacklevel=3) self._handleError(u'MemoryError sending e-mail: {}'.format(str(e)))