Skip to content

fix: skip unreadable audio files during batch processing#70

Merged
mbsantiago merged 1 commit into
mainfrom
fix/GH-68-skip-over-invalid-files
Jun 23, 2026
Merged

fix: skip unreadable audio files during batch processing#70
mbsantiago merged 1 commit into
mainfrom
fix/GH-68-skip-over-invalid-files

Conversation

@mbsantiago

@mbsantiago mbsantiago commented Jun 23, 2026

Copy link
Copy Markdown
Collaborator

Summary

Skip unreadable audio files during batch directory/file-list processing instead
of failing the whole run.

Changes

  • catch LibsndfileError when creating recordings in
    get_clips_from_files
  • log a warning and continue processing the remaining files
  • add a CLI regression test covering a directory with one valid file and one
    corrupted file

Testing

  • uv run pytest tests/test_cli/test_process.py

Acknowledgements

Thanks to @SanderBud for raising this in issue #68.

@mbsantiago mbsantiago merged commit 920eea6 into main Jun 23, 2026
4 checks passed
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