diff --git a/sat/memory/cache.py b/sat/memory/cache.py index f7d3a347..24b237a8 100644 --- a/sat/memory/cache.py +++ b/sat/memory/cache.py @@ -140,7 +140,7 @@ class Cache(object): try: with cache_url.open("rb") as f: cache_data = pickle.load(f) - except IOError as e: + except (IOError, EOFError) as e: log.warning(f"can't read cache at {cache_url}: {e}") return None except pickle.UnpicklingError: