[datafeed] return empty dict when source is fresh avoid crash in the looping task because None returned
authorSylvain Thénault <sylvain.thenault@logilab.fr>
Thu, 10 Feb 2011 16:20:49 +0100
changeset 6972 12aa5cd81ce5
parent 6971 33afb8748052
child 6973 d2cd38749c17
[datafeed] return empty dict when source is fresh avoid crash in the looping task because None returned
server/sources/datafeed.py
--- a/server/sources/datafeed.py	Thu Feb 10 13:26:41 2011 +0100
+++ b/server/sources/datafeed.py	Thu Feb 10 16:20:49 2011 +0100
@@ -122,7 +122,7 @@
 
     def pull_data(self, session, force=False):
         if not force and self.fresh():
-            return
+            return {}
         if self.config['delete-entities']:
             myuris = self.source_cwuris(session)
         else: