Skip to content

Commit 20341ca

Browse files
authored
Merge pull request #475 from Labelbox/jt/al-1711
[AL-1711] Update Fetching Error Status Code
2 parents d8c0964 + 1c24dbe commit 20341ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

labelbox/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ def check_errors(keywords, *path):
204204
return None
205205

206206
def get_error_status_code(error):
207-
return error["extensions"]["exception"].get("status")
207+
return error["extensions"].get("code")
208208

209209
if check_errors(["AUTHENTICATION_ERROR"], "extensions",
210210
"code") is not None:

0 commit comments

Comments
 (0)