Skip to content

Commit

Permalink
Fix update bracket_termination.py with f string
Browse files Browse the repository at this point in the history
  • Loading branch information
alexonab authored Apr 15, 2023
1 parent bf85ca8 commit 4a67ed6
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 4a67ed6

Please sign in to comment.