Exceptions

exception valvemdl.exceptions.MdlError[source]

Bases: Exception

Base class for every error raised by ValveMDL.

exception valvemdl.exceptions.MdlVersionUnsupportedError(version)[source]

Bases: MdlError

Raised when a file declares a version this library does not know how to parse.

version
Type:

(int) - The offending version.

exception valvemdl.exceptions.MdlSidecarMissingError(path)[source]

Bases: MdlError

Raised when a sidecar file (vvd, vtx) is asked for but was not found next to the mdl.

path
Type:

(str) - The path that was looked for.