Skip to content

Commit

Permalink
fix: Prevent error when generating credits
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed May 1, 2023
1 parent 24200e9 commit 747c3dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion project/scripts/gen_credits.py.jinja
Expand Up @@ -67,7 +67,7 @@ def _get_deps(base_deps: Mapping[str, Mapping[str, str]]) -> dict[str, dict[str,
for pkg_dependency in lock_pkgs[pkg_name].get("dependencies", []):
parsed = regex.match(pkg_dependency).groupdict() # type: ignore[union-attr]
dep_name = parsed["dist"].lower()
if dep_name not in deps and dep_name != project["name"]:
if dep_name not in deps and dep_name != project["name"] and dep_name in lock_pkgs:
deps[dep_name] = {"license": _get_license(dep_name), **parsed, **lock_pkgs[dep_name]}
again = True

Expand Down

0 comments on commit 747c3dd

Please sign in to comment.