Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add too-many-deps error output to org_dependency_search #155

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion org_dependency_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ def run_query(org, repo, headers, url):
f"Query failed to run by returning code of" f" {request.status_code}. {query}"
)
if "errors" in jsonified.keys():
raise Exception(f"Error: {jsonified['errors'][0]['message']}")
print(f"Repo: {org}/{repo} has too many dependencies to analyze")
break
try:
has_next_page = next_page(jsonified)
cursor = get_cursor(jsonified)
Expand Down Expand Up @@ -186,6 +187,7 @@ def main():
) as bar:
for repo in repolist:
bar.text = f" - checking {repo.name}..."
# print(f"DEBUG - {repo.name=}")
utils.check_rate_remain(gh_sess)
if args.unarchived and repo.archived:
continue
Expand Down
Loading