Skip to main content
All exceptions are accessible via valaw.Exceptions.

RiotAPIResponseError

Raised when the Riot API returns an error response.
Full details on response codes can be found in the Riot Games documentation.

InvalidRegion

Raised when an invalid region is passed to a method. Valid regions: ap, br, esports, eu, kr, latam, na

InvalidCluster

Raised when an invalid cluster is passed to the client or a method. Valid clusters: americas, asia, esports, europe

InvalidLocale

Raised when an invalid locale is passed to GET_getContent. Valid locales: ar-AE, de-DE, en-GB, en-US, es-ES, es-MX, fr-FR, id-ID, it-IT, ja-JP, ko-KR, pl-PL, pt-BR, ru-RU, th-TH, tr-TR, vi-VN, zh-CN, zh-TW
Locale input is case-insensitive — en-US, en-us, and EN-US all work.

InvalidQueue

Raised when an invalid queue is passed to GET_getRecent or GET_getConsoleRecent. Valid PC queues: competitive, unrated, spikerush, tournamentmode, deathmatch, onefa, ggteam, hurm Valid console queues: console_unrated, console_swiftplay, console_hurm, console_competitive, console_deathmatch

InvalidPlatformType

Raised when an invalid platform type is passed to a console method. Valid values: playstation, xbox

InvalidRiotAPIKey

Raised when None or an empty string is passed as the API token.

FailedToParseJSON

Raised when the API response cannot be parsed as JSON. This is uncommon and usually indicates an unexpected response from the Riot API.