Skip to content

Commit c292f2b

Browse files
committed
update to getting error status code
1 parent 7d30260 commit c292f2b

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
@@ -203,7 +203,7 @@ def check_errors(keywords, *path):
203203
return None
204204

205205
def get_error_status_code(error):
206-
return error["extensions"]["exception"].get("status")
206+
return error["extensions"].get("code")
207207

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

0 commit comments

Comments
 (0)