From 77d3bf2fe17af2ec1eaa47e3af75f1521196dc29 Mon Sep 17 00:00:00 2001 From: Salad Dais Date: Mon, 14 Jun 2021 14:17:21 +0000 Subject: [PATCH] Make ObjectCacheChain handle invalid caches properly --- hippolyzer/lib/proxy/vocache.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/hippolyzer/lib/proxy/vocache.py b/hippolyzer/lib/proxy/vocache.py index e623a27..cf54dc0 100644 --- a/hippolyzer/lib/proxy/vocache.py +++ b/hippolyzer/lib/proxy/vocache.py @@ -212,7 +212,9 @@ class RegionViewerObjectCacheChain: for cache_dir in iter_viewer_cache_dirs(): if not (cache_dir / "objectcache" / "object.cache").exists(): continue - caches.append(ViewerObjectCache.from_path(cache_dir / "objectcache")) + cache = ViewerObjectCache.from_path(cache_dir / "objectcache") + if cache: + caches.append(cache) regions = [] for cache in caches: region = cache.read_region(handle)