Skip to content

Commit

Permalink
Fix get_nodata_value
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-braun committed Feb 26, 2024
1 parent 2b823dc commit 073241b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sertit/rasters_rio.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 073241b

Please sign in to comment.