Skip to content

Commit

Permalink
Merge pull request #1751 from girder/harden-cache
Browse files Browse the repository at this point in the history
Harden the tile cache between python versions and numpy versions
  • Loading branch information
manthey authored Jan 2, 2025
2 parents 96c5cea + 41e6cec commit 7440b00
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion large_image/cache_util/cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7440b00

Please sign in to comment.