Skip to content

Commit

Permalink
Raise an error if the issue number isn't correctly read during the li…
Browse files Browse the repository at this point in the history
…nk verification
  • Loading branch information
Skptak committed Nov 8, 2023
1 parent 167b073 commit 0c24b51
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions link-verifier/verify-links.py
Original file line number Diff line number Diff line change
Expand Up @@ -258,9 +258,10 @@ def fetch_issues(repo, issue_type, limit):
if process.returncode == 0:
key = issue_type + 's'
for issue in process.stdout.split():
print(f"Stdout = {process.stdout.split()}")
print(f"issue= {issue}\nkey = {key}")
main_repo_list[repo][key].add(int(issue))
if(issue.isnumeric()):
main_repo_list[repo][key].add(int(issue))
else:
raise TypeError(f"Attempted to cast {issue} as an int. Error fetching GitHub Issues")
return 0
else:
use_gh_cache = False
Expand Down

0 comments on commit 0c24b51

Please sign in to comment.