Skip to content

Commit

Permalink
Merge pull request #1732 from alexonab/patch-5
Browse files Browse the repository at this point in the history
Fix  update bracket_termination.py with f string
  • Loading branch information
richbeales authored Apr 16, 2023
2 parents 2ea9a8b + 9e4cc5c commit c5f513a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion autogpt/json_fixes/bracket_termination.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def attempt_to_fix_json_by_finding_outermost_brackets(json_string: str):

except (json.JSONDecodeError, ValueError):
if CFG.debug_mode:
logger.error("Error: Invalid JSON: %s\n", json_string)
logger.error(f"Error: Invalid JSON: {json_string}\n")
if CFG.speak_mode:
say_text("Didn't work. I will have to ignore this response then.")
logger.error("Error: Invalid JSON, setting it to empty JSON now.\n")
Expand Down

0 comments on commit c5f513a

Please sign in to comment.