Commits

Aleš Erjavec committed a240c66

BUGFIX. Fixed cache version invalidation.

Must close the shelve before reopening using 'create new' flag. Otherwise
a DBPremissionError is raised on windows.

  • Participants
  • Parent commits d9eebf8

Comments (0)

Files changed (1)

_bioinformatics/obiGeneAtlas.py

     if cache.get(name + "__CACHE_VERSION__", None) == CACHE_VERSION:
         return cache
     else:
+        cache.close()
         cache = shelve.open(orngServerFiles.localpath("GeneAtlas", name), "n")
         cache[name + "__CACHE_VERSION__"] = CACHE_VERSION
         return cache