Exceptions#

Generic Exceptions#

class fastf1.RateLimitExceededError[source]#

Raised if a hard rate limit is exceeded.

Data Loading Exceptions#

class fastf1.core.NoLapDataError(*args)[source]#

Raised if the API request does not fail but there is no usable data after processing the result.

class fastf1.core.InvalidSessionError(*args)[source]#

Raised if no session for the specified event name, type and year can be found.

class fastf1._api.SessionNotAvailableError(*args)[source]#

Raised if an api request returned no data for the requested session. A likely cause is that the session does not exist because it was cancelled.

Jolpica-F1 (Ergast) Specific Exceptions#

class fastf1.ergast.interface.ErgastError[source]#

Base class for Ergast API errors.

class fastf1.ergast.interface.ErgastJsonError[source]#

The response that was returned by the server could not be parsed.

class fastf1.ergast.interface.ErgastInvalidRequestError[source]#

The server rejected the request because it was invalid.