Weboob.do_backends() supports when the 'backends' argument is None
This commit is contained in:
parent
c56020d814
commit
8533c05e65
1 changed files with 3 additions and 1 deletions
|
|
@ -145,7 +145,9 @@ class Weboob(object):
|
|||
return BackendsCall(backends, function, *args, **kwargs)
|
||||
|
||||
def do_backends(self, backends, function, *args, **kwargs):
|
||||
if isinstance(backends, (str,unicode)):
|
||||
if backends is None:
|
||||
backends = list(self.iter_backends())
|
||||
elif isinstance(backends, (str,unicode)):
|
||||
backends = [backend for backend in self.iter_backends() if backend.name == backends]
|
||||
elif isinstance(backends, (list,tuple)):
|
||||
old_backends = backends
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue