From ca70225b6554f0e9554e5962e975a997e19cf62e Mon Sep 17 00:00:00 2001 From: BRAUN REMI Date: Thu, 17 Oct 2024 14:33:36 +0200 Subject: [PATCH] FIX: Remove an ignored exception when deleting a Product (`ValueError: Unknown '__class__' name in 'covariance.compute' hyperparameters`) --- CHANGES.md | 1 + eoreader/products/product.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index bec5d253..de83e417 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -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) diff --git a/eoreader/products/product.py b/eoreader/products/product.py index ccdeb42b..b9fe48e0 100644 --- a/eoreader/products/product.py +++ b/eoreader/products/product.py @@ -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