Allow to load a module with config=None
This commit is contained in:
parent
22c436bcb8
commit
4f33f914ad
1 changed files with 2 additions and 0 deletions
|
|
@ -268,6 +268,8 @@ class Module(object):
|
|||
self.weboob = weboob
|
||||
self.name = name
|
||||
self.lock = RLock()
|
||||
if config is None:
|
||||
config = {}
|
||||
|
||||
# Private fields (which start with '_')
|
||||
self._private_config = dict((key, value) for key, value in config.iteritems() if key.startswith('_'))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue