mirror of
https://github.com/aljazceru/Auto-GPT.git
synced 2025-12-18 14:34:23 +01:00
Update json_utils.py
This was used differently in a local branch and an error.
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