From dae7b6510731c22ff89ee6ff93a1ca47af196741 Mon Sep 17 00:00:00 2001 From: Christophe Benz Date: Fri, 14 May 2010 19:04:02 +0200 Subject: [PATCH] protect function argument --- weboob/modules.py | 2 ++ 1 file changed, 2 insertions(+) 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)