Skip to content

Commit

Permalink
fix path beeing None
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 authored and mergify[bot] committed Dec 18, 2024
1 parent c2f5b59 commit b657186
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion nixpkgs_review/nix.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,12 +203,16 @@ def _nix_eval_filter(json: dict[str, Any]) -> list[Attr]:
attr_by_path: dict[Path, Attr] = {}
broken = []
for name, props in json.items():
path = props.get("path", None)
if path is not None:
path = Path(path)

attr = Attr(
name=name,
exists=props["exists"],
broken=props["broken"],
blacklisted=name in blacklist,
path=Path(props["path"]),
path=path,
drv_path=props["drvPath"],
)
if attr.path is not None:
Expand Down

0 comments on commit b657186

Please sign in to comment.