Mail scheduler return when not have mailboxes scheduler actived

This commit is contained in:
resteve 2015-11-09 13:06:44 +01:00
parent dc83cf220b
commit 73206cc4ec

View file

@ -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)