]> code.delx.au - bg-scripts/blobdiff - randombg.py
Return True from the cache loading code, this stops the cache from being wiped each...
[bg-scripts] / randombg.py
index 3f1609cba2cc7957694130a4b5aaba59c36939b9..e58875ade1a623c5563a49655d3e1699b92c61ae 100755 (executable)
@@ -131,6 +131,8 @@ class AllRandomFileList(BaseFileList):
                                logging.debug("Ignoring cache, path lists do not match")
                except Exception, e:
                        logging.warning("Loading cache", exc_info=1)
+               else:
+                       return True
 
        def get_current_image(self):
                return self.list[self.imagePointer]