Skip to content

Commit b657186

Browse files
Mic92mergify[bot]
authored andcommitted
fix path beeing None
1 parent c2f5b59 commit b657186

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

nixpkgs_review/nix.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,12 +203,16 @@ def _nix_eval_filter(json: dict[str, Any]) -> list[Attr]:
203203
attr_by_path: dict[Path, Attr] = {}
204204
broken = []
205205
for name, props in json.items():
206+
path = props.get("path", None)
207+
if path is not None:
208+
path = Path(path)
209+
206210
attr = Attr(
207211
name=name,
208212
exists=props["exists"],
209213
broken=props["broken"],
210214
blacklisted=name in blacklist,
211-
path=Path(props["path"]),
215+
path=path,
212216
drv_path=props["drvPath"],
213217
)
214218
if attr.path is not None:

0 commit comments

Comments
 (0)