Skip to content

Commit b1dea8a

Browse files
committed
fix: normalize null tools to empty list in descriptor accessor
1 parent 9a0e3cc commit b1dea8a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/specify_cli/integrations/catalog.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ def scripts(self) -> List[str]:
618618

619619
@property
620620
def tools(self) -> List[Dict[str, Any]]:
621-
return self.data.get("requires", {}).get("tools", [])
621+
return self.data.get("requires", {}).get("tools") or []
622622

623623
def get_hash(self) -> str:
624624
"""SHA-256 hash of the descriptor file."""

0 commit comments

Comments
 (0)