mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-19 06:54:22 +01:00
Merge pull request #747 from BillSchumacher/fix-json-error
Update json_utils.py
This commit is contained in:
@@ -76,7 +76,7 @@ def balance_braces(json_string: str) -> str:
|
|||||||
json.loads(json_string)
|
json.loads(json_string)
|
||||||
return json_string
|
return json_string
|
||||||
except json.JSONDecodeError as e:
|
except json.JSONDecodeError as e:
|
||||||
raise e
|
pass
|
||||||
|
|
||||||
|
|
||||||
def fix_invalid_escape(json_str: str, error_message: str) -> str:
|
def fix_invalid_escape(json_str: str, error_message: str) -> str:
|
||||||
|
|||||||
Reference in New Issue
Block a user