File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
[project ]
2
2
name = " lbox-clients"
3
- version = " 1.0 .0"
3
+ version = " 1.1 .0"
4
4
description = " This module contains client sdk uses to conntect to the Labelbox API and backends"
5
5
authors = [
6
6
{ name = " Labelbox" , email = " engineering@labelbox.com" }
Original file line number Diff line number Diff line change @@ -304,7 +304,13 @@ def get_error_status_code(error: dict) -> int:
304
304
malformed_request_error = check_errors (
305
305
["MALFORMED_REQUEST" ], "extensions" , "code"
306
306
)
307
+
308
+ error_code = "MALFORMED_REQUEST"
307
309
if malformed_request_error is not None :
310
+ if error_handlers and error_code in error_handlers :
311
+ handler = error_handlers [error_code ]
312
+ handler (response )
313
+ return None
308
314
raise exceptions .MalformedQueryException (
309
315
malformed_request_error [error_log_key ]
310
316
)
You can’t perform that action at this time.
0 commit comments