diff --git a/weboob/modules.py b/weboob/modules.py index c36ff038..c0fc1b97 100644 --- a/weboob/modules.py +++ b/weboob/modules.py @@ -107,6 +107,8 @@ class BackendsConfig(object): continue def add_backend(self, name, _type, params): + if not name: + raise ValueError(u'Please give a name to the backend.') config = SafeConfigParser() config.read(self.confpath) config.add_section(name)