Skip to content

fix: add missing f-string prefix in voice.py file size warning#4929

Open
karesansui-u wants to merge 1 commit intoAider-AI:mainfrom
karesansui-u:fix/voice-fstring-prefix
Open

fix: add missing f-string prefix in voice.py file size warning#4929
karesansui-u wants to merge 1 commit intoAider-AI:mainfrom
karesansui-u:fix/voice-fstring-prefix

Conversation

@karesansui-u
Copy link
Copy Markdown

Bug description

In voice.py L149, the warning message uses {temp_wav} placeholder syntax but is missing the f prefix:

print("\nWarning: {temp_wav} is too large, switching to mp3 format.")

This prints the literal string {temp_wav} instead of the actual file path.

Fix

Add the f prefix to make it an f-string:

print(f"\nWarning: {temp_wav} is too large, switching to mp3 format.")

Affected files

  • aider/voice.py (L149) — 1 character change

The warning message at line 149 uses {temp_wav} placeholder syntax but
is missing the f prefix, so the literal string "{temp_wav}" is printed
instead of the actual file path.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant