Skip to content

Commit

Permalink
fixed dict .keys
Browse files Browse the repository at this point in the history
  • Loading branch information
claire-simpson committed Dec 6, 2024
1 parent 90ac6ab commit 322d498
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/natcap/invest/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -754,7 +754,7 @@ def reclassify_raster(

# check keys in value map to ensure none are NA or None
if any((key is pandas.NA or key is None)
for key in value_map.keys()):
for key in value_map):
error_message = (f"Missing or NA value in '{column_name}' column"
f" in {table_name} table.")
raise TypeError(error_message)
Expand Down

0 comments on commit 322d498

Please sign in to comment.