Skip to content

Commit db33970

Browse files
committed
fix: Solve issue with what key is used to find errors
1 parent 76ebdea commit db33970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ghastoolkit/octokit/octokit.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ def get(
222222
raise Exception(known_error)
223223

224224
# Handle errors in the response
225-
if isinstance(response_json, dict) and response_json.get("errors"):
225+
if isinstance(response_json, dict) and response_json.get("message"):
226226
# Custom error handler callback
227227
if error_handler:
228228
return error_handler(response.status_code, response_json)

0 commit comments

Comments
 (0)