Skip to content

Commit d6b01ec

Browse files
authored
fix: handle recipes with an empty extra section (#1050)
The recipe `ligand-validation` was added with an empty `extra:` section in meta.yaml. This will handle that situation without throwing an error during the nightly ARM builds.
1 parent 2d97074 commit d6b01ec

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bioconda_utils/recipe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ def maintainers(self):
403403
@property
404404
def extra_additional_platforms(self) -> list:
405405
"""The extra additional-platforms list"""
406-
if 'extra' in self.meta and 'additional-platforms' in self.meta['extra']:
406+
if 'extra' in self.meta and self.meta['extra'] and 'additional-platforms' in self.meta['extra']:
407407
return list(self.meta["extra"]["additional-platforms"])
408408
return []
409409

0 commit comments

Comments
 (0)