diff --git a/src/psrt_ghsa_bot/app.py b/src/psrt_ghsa_bot/app.py index 7e2e49b..01febc4 100644 --- a/src/psrt_ghsa_bot/app.py +++ b/src/psrt_ghsa_bot/app.py @@ -138,6 +138,7 @@ def credit_if_uncredited(login: str, type: str) -> None: # If there are no pull requests the API # returns 404. Skip instead of erroring. if e.response.status_code == 404: + print(f" ⚠️ Pull requests not found for {private_fork_owner}/{private_fork_repo}!") pull_requests = [] else: capture_exception() @@ -158,6 +159,9 @@ def credit_if_uncredited(login: str, type: str) -> None: # If there are no pull request reviews the API # returns 404. Skip instead of erroring. if e.response.status_code == 404: + print( + f" ⚠️ Reviews not found for {private_fork_owner}/{private_fork_repo}#{pull_request['number']}!" + ) continue capture_exception() raise RuntimeError("Request to list pull requests reviews failed") from None