Skip to content

Commit

Permalink
Add another check for 403 GitHub response
Browse files Browse the repository at this point in the history
  • Loading branch information
Felixoid committed May 28, 2024
1 parent d585e98 commit c2a5233
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions did/plugins/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,10 @@ def request_data(url, headers):
raise ReportError(
"Defined token is not valid. "
"Either update it or remove it.")
if response.status_code == 403:
raise ReportError(
"Problems with the token scope. "
f"Please, see the details in the response: {response.text}")

# Parse fetched json data
try:
Expand Down

0 comments on commit c2a5233

Please sign in to comment.