From 6322500d03307dc81549dd4e04c628ee348de712 Mon Sep 17 00:00:00 2001 From: Romain Bignon Date: Sat, 11 Oct 2014 20:16:40 +0200 Subject: [PATCH] fix 'module' condition in WebNip.iter_backends() --- weboob/core/ouiboube.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/weboob/core/ouiboube.py b/weboob/core/ouiboube.py index 317fd511..f9f5b98d 100644 --- a/weboob/core/ouiboube.py +++ b/weboob/core/ouiboube.py @@ -204,8 +204,8 @@ class WebNip(object): :rtype: iter[:class:`weboob.tools.backend.Module`] """ for _, backend in sorted(self.backend_instances.iteritems()): - if caps is None or backend.has_caps(caps) and \ - module is None or backend.NAME == module: + if (caps is None or backend.has_caps(caps)) and \ + (module is None or backend.NAME == module): with backend: yield backend