Skip to content

Improve error when converter is unset - #878

Open
Mirochill wants to merge 1 commit into
jiaaro:masterfrom
Mirochill:fix-853-none-converter-message
Open

Improve error when converter is unset#878
Mirochill wants to merge 1 commit into
jiaaro:masterfrom
Mirochill:fix-853-none-converter-message

Conversation

@Mirochill

Copy link
Copy Markdown

Summary

Raise an actionable OSError when AudioSegment.converter is unset instead of letting subprocess.Popen() fail with a generic NoneType path error.

Fixes #853.

Changes

  • Adds an explicit AudioSegment.converter is not set check before invoking ffmpeg/avconv in from_file() and from_file_using_temporary_files().
  • Adds a regression test for AudioSegment.from_file(..., format=mp3) when AudioSegment.converter is None.

Validation

Not run locally.

Static validation performed:

  • git diff --check

@Mirochill
Mirochill marked this pull request as ready for review May 25, 2026 18:26
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.

Unclear error when AudioSegment.converter is None — misleading message about file path

1 participant