Skip to content

Commit 245a035

Browse files
fix: format conditional check for alternate asset configurations in remove_xarray_integration
1 parent 308202c commit 245a035

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

scripts/register.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,9 @@ def remove_xarray_integration(item: Item) -> None:
231231
removed_count += 1
232232

233233
# Remove alternate xarray configurations
234-
if "alternate" in asset.extra_fields and isinstance(asset.extra_fields["alternate"], dict):
234+
if "alternate" in asset.extra_fields and isinstance(
235+
asset.extra_fields["alternate"], dict
236+
):
235237
if asset.extra_fields["alternate"].pop("xarray", None):
236238
removed_count += 1
237239
# Remove empty alternate section

0 commit comments

Comments
 (0)