Commit 473cc77b authored by Romain Bignon's avatar Romain Bignon Committed by Romain Bignon

boobot: DLFP does not need 'with' anymore

parent 3e58a190
......@@ -212,8 +212,7 @@ class MyThread(Thread):
def check_board(self):
def iter_messages(backend):
with backend.browser:
return backend.browser.iter_new_board_messages()
return backend.browser.iter_new_board_messages()
for msg in self.weboob.do(iter_messages, backends=['dlfp']):
word = self.find_keywords(msg.message)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment