IMPORTANT: To view this page as Markdown, append `.md` to the URL (e.g. /get-started.md). For the complete documentation index, see llms.txt.
Skip to main content
For the complete documentation index, see llms.txt. Markdown versions of all pages are available by appending .md to any URL (e.g. /get-started.md).

Python class

MediaDecodeError

MediaDecodeError​

class max.pipelines.context.MediaDecodeError

source

Bases: InputError

Raised when client-supplied media is malformed, unsupported, or unreadable.

The one type for every decoder-specific failure on untrusted media (PyAV, PIL, bad base64), so serving code can report it to the user without knowing which backend raised.