Allow to load a module with config=None

This commit is contained in:
Florent 2014-10-09 13:24:52 +02:00
commit 4f33f914ad

View file

@ -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('_'))