We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7a87486 commit 7c975b0Copy full SHA for 7c975b0
detection_rules/devtools.py
@@ -1051,8 +1051,13 @@ def raw_permalink(raw_link: str) -> str:
1051
"Gist not found: verify the gist_id exists and the token has access to it", exc=exc
1052
) from exc
1053
if exc.response.status_code == requests.status_codes.codes.unauthorized:
1054
+ text = json.loads(exc.response.text).get(
1055
+ "message", "verify the token is valid and has the necessary permissions"
1056
+ )
1057
+ error_message = f"Unauthorized: {text}"
1058
raise raise_client_error(
- "Unauthorized: verify the token is valid and has the necessary permissions", exc=exc
1059
+ error_message,
1060
+ exc=exc,
1061
1062
raise
1063
0 commit comments