Skip to content

Commit

Permalink
issuebot: ignore failures from load_lilac_yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
lilydjwg committed Apr 26, 2023
1 parent 5e8b6c7 commit 1733e78
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions issuebot
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ from github import GitHub, Issue
from myutils import file_lock

from lilac2.lilacyaml import (
iter_pkgdir, load_lilac_yaml,
iter_pkgdir, load_lilac_yaml as _load_lilac_yaml,
)

from webhooks.issue import parse_issue_text
Expand Down Expand Up @@ -380,12 +380,19 @@ def _find_orphaning_issue(repo: pathlib.Path, pkg: str) -> Optional[int]:
else:
return None

def load_lilac_yaml(x):
try:
return _load_lilac_yaml(x)
except Exception:
return None

def find_orphaned_unmaintained_packages(
repopath: pathlib.Path,
) -> Set[str]:
lilac_yamls = {
x.name: load_lilac_yaml(x)
x.name: ly
for x in iter_pkgdir(repopath)
if (ly := load_lilac_yaml(x)) is not None
}
orphaned_pkgs = {
pkg
Expand Down

0 comments on commit 1733e78

Please sign in to comment.