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 2aee263 commit 85fa852Copy full SHA for 85fa852
roboflow/core/project.py
@@ -555,8 +555,12 @@ def _parse_upload_error(self, error: rfapi.UploadError) -> str:
555
dict_part = str(error).split(": ", 2)[2]
556
if re.search(r"'\w+':", dict_part):
557
temp_str = dict_part.replace(r"\'", "<PLACEHOLDER>")
558
+ temp_str = temp_str.replace('"', r"\"")
559
temp_str = temp_str.replace("'", '"')
560
dict_part = temp_str.replace("<PLACEHOLDER>", "'")
561
+ dict_part = dict_part.replace("True", "true")
562
+ dict_part = dict_part.replace("False", "false")
563
+ dict_part = dict_part.replace("None", "null")
564
parsed_dict: dict = json.loads(dict_part)
565
message = parsed_dict.get("message")
566
return message or str(parsed_dict)
0 commit comments