yandex.errors.raise_exception

yandex.errors.raise_exception(response)[source]

Raises an appropriate YandexError exception based on the response.

Parameters:response (requests.Response) – response from the request.
Raises:yandex.YandexError subclass