tomasbasham / ratelimit

API Rate Limit Decorator
MIT License
768 stars 159 forks source link

Best approach to call call_api function #24

Closed argenisleon closed 6 years ago

argenisleon commented 6 years ago

Hi, In the documentation, the @limits decorator limits the number of calls that a function can process, but what is the best approach to call call_api() to not fire the ratelimit.RateLimitException?

tomasbasham commented 6 years ago

IIUC you want to prevent the exception from being raised? Passing raise_on_limit=False as an argument to limits will achieve this.