Errors

The Exceptions exclusive to uprate.

exception uprate.errors.RateLimitError(retry_at: float, rate: Rate, *args)[source]

Raised when a Rate Limit is violated.

retry_at

The unix timestamp of when to retry.

Type

float

rate

The rate that was violated

Type

Rate

property retry_after: float

The amount of time to retry after in seconds, might be negative if enough time has elapsed

Type

float

__float__() float[source]

Return RateLimitError.retry_after as a float

Returns

The amount in seconds to retry after.

Return type

float

__int__() int[source]

Return RateLimitError.retry_after as a ceiled int.

Returns

The ceiled amount of seconds to retry after

Return type

int