# HG changeset patch
# User Sylvain Thénault <sylvain.thenault@logilab.fr>
# Date 1297351249 -3600
# Node ID 12aa5cd81ce51fd5195ae5236d8502d025ea6678
# Parent  33afb8748052699ba52b8dae77cfb33314ff0f7a
[datafeed] return empty dict when source is fresh avoid crash in the looping task because None returned

diff -r 33afb8748052 -r 12aa5cd81ce5 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: