mirror of
https://github.com/jamiepine/voicebox.git
synced 2026-09-16 13:20:39 -07:00
`UploadFile.filename` can be None, and `Path(None)` raises TypeError. On the avatar endpoint this happens before the try/except, so a filename-less upload surfaces as an unhandled 500 instead of a clean response. Every other upload handler already guards this with `file.filename or ""` (add_profile_sample, transcription, generations); apply the same guard here. Co-authored-by: Claude Opus 4.8 (1M context) <[email protected]>