use Weboob.do insteal of deprecated iter_backends in some frontends
This commit is contained in:
parent
ad240e7aed
commit
7c502ca236
3 changed files with 9 additions and 14 deletions
|
|
@ -106,9 +106,8 @@ class Monboob(ConsoleApplication):
|
|||
self.weboob.loop()
|
||||
|
||||
def process(self):
|
||||
for backend in self.weboob.iter_backends():
|
||||
for message in backend.iter_new_messages():
|
||||
self.send_email(backend, message)
|
||||
for backend, message in self.weboob.do('iter_new_messages'):
|
||||
self.send_email(backend, message)
|
||||
|
||||
def send_email(self, backend, mail):
|
||||
domain = self.config.get('domain')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue