Skip to content

Commit 830147a

Browse files
authored
Fix NameError with multi band rasters (#257)
1 parent 75919e3 commit 830147a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackstac/prepare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ def prepare_items(
152152
if raster_bands is not None:
153153
if len(raster_bands) != 1:
154154
raise ValueError(
155-
f"raster:bands has {len(raster_bands)} elements for asset {asset_id!r}. "
155+
f"raster:bands has {len(raster_bands)} elements for asset {id!r}. "
156156
"Multi-band rasters are not currently supported.\n"
157157
"If you don't care about this asset, you can skip it by giving a list "
158158
"of asset IDs you *do* want in `assets=`, and leaving this one out."

0 commit comments

Comments
 (0)