Skip to content

Commit

Permalink
Merge pull request Significant-Gravitas#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 9abd5c8 + 4a67ed6 commit 69d9ec4
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 69d9ec4

Please sign in to comment.