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 33572c2 commit 3990d64Copy full SHA for 3990d64
roboflow/core/project.py
@@ -578,7 +578,10 @@ def _annotation_params(self, annotation_path):
578
return annotation_name, annotation_string
579
580
def _parse_upload_error(self, error: rfapi.UploadError) -> str:
581
- dict_part = str(error).split(": ", 2)[2]
+ error_str = str(error)
582
+ start_idx = error_str.index("{")
583
+ end_idx = error_str.rindex("}") + 1
584
+ dict_part = error_str[start_idx:end_idx]
585
dict_part = dict_part.replace("True", "true")
586
dict_part = dict_part.replace("False", "false")
587
dict_part = dict_part.replace("None", "null")
0 commit comments