psa: more fixes if wc unavailable
[feedingit] / psa_harmattan / feedingit / pysrc / rss_sqlite.py
index 9d5a24d..7e52cb2 100644 (file)
@@ -404,7 +404,8 @@ class Feed(BaseObject):
             # this first.
             if http_status == 304:
                 logger.debug("%s: No changes to feed." % (self.key,))
-                mainthread.execute(wc_success, async=True)
+                if wc().available():
+                    mainthread.execute(wc_success, async=True)
                 success = True
             elif len(tmp["entries"])==0 and not tmp.get('version', None):
                 # An error occured fetching or parsing the feed.  (Version