mirror of
https://github.com/JonathanHerrewijnen/calibre-web.git
synced 2024-11-10 21:24:15 +00:00
added try except block for send_gmail_email method
This commit is contained in:
parent
7eef44f73c
commit
397cd987cb
@ -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)))
|
||||
|
Loading…
Reference in New Issue
Block a user