Skip to content

Commit

Permalink
FIX: Remove an ignored exception when deleting a Product (`ValueError…
Browse files Browse the repository at this point in the history
…: Unknown '__class__' name in 'covariance.compute' hyperparameters`)
  • Loading branch information
remi-braun committed Oct 17, 2024
1 parent 76a9d18 commit ca70225
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- FIX: Fix (really) window's name coming from a vector with an underscore after it
- FIX: Fix clean band path for Sentinel-3 SLSTR products
- FIX: Remove an ignored exception when deleting a Product (`ValueError: Unknown '__class__' name in 'covariance.compute' hyperparameters`)

## 0.21.5 (2024-10-17)

Expand Down
2 changes: 1 addition & 1 deletion eoreader/products/product.py
Original file line number Diff line number Diff line change
Expand Up @@ -1862,7 +1862,7 @@ def clear(self):
try:
if isinstance(obj, functools._lru_cache_wrapper):
objects.append(obj)
except ReferenceError:
except (ReferenceError, ValueError):
pass

# All objects cleared
Expand Down

0 comments on commit ca70225

Please sign in to comment.