mirror of
https://github.com/NaN-tic/trytond-electronic_mail-old.git
synced 2023-12-14 02:22:55 +01:00
Mail scheduler return when not have mailboxes scheduler actived
This commit is contained in:
parent
dc83cf220b
commit
73206cc4ec
1 changed files with 1 additions and 0 deletions
|
@ -399,6 +399,7 @@ class ElectronicMail(ModelSQL, ModelView):
|
||||||
])
|
])
|
||||||
if not mailboxs:
|
if not mailboxs:
|
||||||
logger.warning('Configure mailboxs to send by the scheduler')
|
logger.warning('Configure mailboxs to send by the scheduler')
|
||||||
|
return
|
||||||
|
|
||||||
emails = cls.search([
|
emails = cls.search([
|
||||||
('mailbox', 'in', mailboxs)
|
('mailbox', 'in', mailboxs)
|
||||||
|
|
Loading…
Reference in a new issue