Exceptions

All exceptions inherit from LiquipediaError, so you can catch it as a base class for any library error.

class liquipydia.LiquipediaError

Bases: Exception

Base exception for all liquipydia errors.

__init__(message)
class liquipydia.AuthError

Bases: LiquipediaError

Raised when the API key is invalid or missing (HTTP 403).

class liquipydia.NotFoundError

Bases: LiquipediaError

Raised when the requested data does not exist (HTTP 404).

class liquipydia.RateLimitError

Bases: LiquipediaError

Raised when the API rate limit is exceeded (HTTP 429).

retry_after

Suggested wait time in seconds before retrying, or None if unknown.

__init__(message, *, retry_after=None)
class liquipydia.ApiError

Bases: LiquipediaError

Raised when the API returns an error in the response body.