fix 'module' condition in WebNip.iter_backends()
This commit is contained in:
parent
cf5740fbd3
commit
6322500d03
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue