# HG changeset patch # User Goffi # Date 1623918942 -7200 # Node ID b3fa179417e70a8580313a973306b0491f9bccd7 # Parent 56a4a574861d583cde7a3c6ba9d5e29e00170a6a core (memory/cache): don't crash on EOFError in getMetadata diff -r 56a4a574861d -r b3fa179417e7 sat/memory/cache.py --- a/sat/memory/cache.py Wed Jun 16 13:49:26 2021 +0000 +++ b/sat/memory/cache.py Thu Jun 17 10:35:42 2021 +0200 @@ -140,7 +140,7 @@ 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: