tmdb.errors module

exception tmdb.errors.APIError(message)

Bases: tmdb.errors.TMDBError

Exception that indicates the error came from the API, rather than from the request and/or library.

This is a baseclass for other exceptions but will also be raised itself when an unknown API error occurs.

attributes:
message: Human readable error message returned by the TMDB API status: A status code returned by the TMDB API
exception tmdb.errors.APIKeyError(message)

Bases: tmdb.errors.APIError

Exception that occurs when your API key used in the request is invalid.

exception tmdb.errors.DoesNotExist(message)

Bases: tmdb.errors.APIError

Exception that occurs when a resource does not exist when requested. e.g. non-existant id parameter.

exception tmdb.errors.InvalidResponseError(message)

Bases: tmdb.errors.TMDBError

Exception that occurs when a request to the API nets an invalid response. This is a TMDB API issue if it occurs.

exception tmdb.errors.LibraryError(message)

Bases: tmdb.errors.TMDBError

Exception that should only occur if there is a code error in the library, please report an issue with the full traceback if this exception happens.

exception tmdb.errors.NetworkError(message)

Bases: tmdb.errors.TMDBError

Exception that occurs if we could not reach the TMDB API with our request. Indicates TMDB or your connection is down.

exception tmdb.errors.TMDBError(message)

Bases: exceptions.Exception

Base Exception of the TMDB API, all other exceptions inherit from this.

attributes:
message: Human readable error message
exception tmdb.errors.ThrottlingError(message)

Bases: tmdb.errors.APIError

Exception that occurs when you hit the request/s limit set by the TMDB server. See the API documentation for the limits estiablished by TMDB.

exception tmdb.errors.TimeoutError(message)

Bases: tmdb.errors.TMDBError

Exception that occurs when a request to the API reaches the timeout set in the API instance.

This might mean the TMDB API is down and/or slow.