From 9e4cc5cc784be121af87cfd90befce3aa4285608 Mon Sep 17 00:00:00 2001 From: Mike M Date: Sat, 15 Apr 2023 17:31:36 -0500 Subject: [PATCH] Fix update bracket_termination.py with f string --- autogpt/json_fixes/bracket_termination.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/autogpt/json_fixes/bracket_termination.py b/autogpt/json_fixes/bracket_termination.py index 13c2ccfd9645..692461aad5d0 100644 --- a/autogpt/json_fixes/bracket_termination.py +++ b/autogpt/json_fixes/bracket_termination.py @@ -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")