summaryrefslogtreecommitdiff
path: root/giscanner/cachestore.py
diff options
context:
space:
mode:
authorRobert Ancell <robert.ancell@canonical.com>2010-08-12 10:01:37 +1000
committerRobert Ancell <robert.ancell@canonical.com>2010-08-12 10:01:37 +1000
commit9a24233bed0e64b34f47f78e094df918fc85dcaf (patch)
tree36bfb3acd99eebffabae3c2e5a8a3a8b32f957fd /giscanner/cachestore.py
parent482fdc866871f51cb39ed053fed3ea6d03940933 (diff)
downloadgobject-introspection-9a24233bed0e64b34f47f78e094df918fc85dcaf.tar.gz
Fix giscanner crash with no cache directory
Diffstat (limited to 'giscanner/cachestore.py')
-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: