Fix update bracket_termination.py with f string

pull/1732/head
Mike M 2023-04-15 17:31:36 -05:00 committed by GitHub
parent 5a8700060e
commit 9e4cc5cc78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ def attempt_to_fix_json_by_finding_outermost_brackets(json_string: str):
except (json.JSONDecodeError, ValueError): except (json.JSONDecodeError, ValueError):
if CFG.debug_mode: 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: if CFG.speak_mode:
say_text("Didn't work. I will have to ignore this response then.") 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") logger.error("Error: Invalid JSON, setting it to empty JSON now.\n")