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: