avoid python side effect
This commit is contained in:
parent
c2af558743
commit
1fd34fe715
1 changed files with 3 additions and 1 deletions
|
|
@ -134,7 +134,9 @@ class ReplApplication(Cmd, BaseApplication):
|
|||
return False
|
||||
return True
|
||||
|
||||
def add_backend(self, name, params={}):
|
||||
def add_backend(self, name, params=None):
|
||||
if params is None:
|
||||
params = {}
|
||||
backend = self.weboob.modules_loader.get_or_load_module(name)
|
||||
if not backend:
|
||||
print 'Backend "%s" does not exist.' % name
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue