diff --git a/did/plugins/github.py b/did/plugins/github.py index 07785a30..9924b570 100644 --- a/did/plugins/github.py +++ b/did/plugins/github.py @@ -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: