[datafeed] don't raise bad config error on source initialization stable
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Mon, 11 Jul 2011 09:18:25 +0200
branchstable
changeset 7641 790038f88b8b
parent 7640 85ebdbbcb321
child 7642 64eee2a83bfa
child 7652 cb2990aaa63c
[datafeed] don't raise bad config error on source initialization
server/sources/datafeed.py
--- a/server/sources/datafeed.py	Mon Jul 11 09:18:18 2011 +0200
+++ b/server/sources/datafeed.py	Mon Jul 11 09:18:25 2011 +0200
@@ -57,7 +57,8 @@
         )
     def __init__(self, repo, source_config, eid=None):
         AbstractSource.__init__(self, repo, source_config, eid)
-        self.update_config(None, self.check_conf_dict(eid, source_config))
+        self.update_config(None, self.check_conf_dict(eid, source_config,
+                                                      fail_if_unknown=False))
 
     def check_config(self, source_entity):
         """check configuration of source entity"""