From 073241b18f5587911c3123dd898bf92179af2402 Mon Sep 17 00:00:00 2001 From: BRAUN REMI Date: Mon, 26 Feb 2024 15:33:58 +0100 Subject: [PATCH] Fix get_nodata_value --- sertit/rasters_rio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sertit/rasters_rio.py b/sertit/rasters_rio.py index 3cc7aa3..d56a18e 100644 --- a/sertit/rasters_rio.py +++ b/sertit/rasters_rio.py @@ -95,7 +95,7 @@ def get_nodata_value(dtype) -> int: # Convert type to numpy if needed try: dtype = getattr(np, dtype) - except AttributeError: + except (AttributeError, TypeError): pass if dtype == np.uint8: