diff --git a/CHANGELOG.md b/CHANGELOG.md index 50b76432b..459e7211e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,10 @@ - Suppress a warning about nd2 files that we can't do anything about ([#1749](../../pull/1749)) +### Bug Fixes + +- Harden the tile cache between python versions and numpy versions ([#1751](../../pull/1751)) + ## 1.30.5 ### Improvements diff --git a/large_image/cache_util/cache.py b/large_image/cache_util/cache.py index 048f83bb3..412cafe79 100644 --- a/large_image/cache_util/cache.py +++ b/large_image/cache_util/cache.py @@ -100,7 +100,7 @@ def wrapper(self, *args: P.args, **kwargs: P.kwargs) -> T: return self.cache[k] except KeyError: pass # key not found - except (ValueError, pickle.UnpicklingError): + except (ValueError, pickle.UnpicklingError, ModuleNotFoundError): # this can happen if a different version of python wrote the record pass v = func(self, *args, **kwargs)