summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--giscanner/cachestore.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/giscanner/cachestore.py b/giscanner/cachestore.py
index d839ef58..d72eee4c 100644
--- a/giscanner/cachestore.py
+++ b/giscanner/cachestore.py
@@ -76,6 +76,9 @@ class CacheStore(object):
self._check_cache_version()
def _check_cache_version(self):
+ if self._directory is None:
+ return
+
current_hash = _get_versionhash()
version = os.path.join(self._directory, _CACHE_VERSION_FILENAME)
try: