diff options
author | Robert Ancell <robert.ancell@canonical.com> | 2010-08-12 10:01:37 +1000 |
---|---|---|
committer | Robert Ancell <robert.ancell@canonical.com> | 2010-08-12 10:01:37 +1000 |
commit | 9a24233bed0e64b34f47f78e094df918fc85dcaf (patch) | |
tree | 36bfb3acd99eebffabae3c2e5a8a3a8b32f957fd /giscanner/cachestore.py | |
parent | 482fdc866871f51cb39ed053fed3ea6d03940933 (diff) | |
download | gobject-introspection-9a24233bed0e64b34f47f78e094df918fc85dcaf.tar.gz |
Fix giscanner crash with no cache directory
Diffstat (limited to 'giscanner/cachestore.py')
-rw-r--r-- | giscanner/cachestore.py | 3 |
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: |