jnawk / Quart-Discord

Discord OAuth2 extension for Quart. An Easier implementation of "Log In With Discord".
MIT License
22 stars 18 forks source link

Create RateLimited exception using coroutines correctly. #4

Closed bobmoretti closed 4 years ago

bobmoretti commented 4 years ago

Add a coroutine creation classmethod to exceptions.RateLimited so that we can call the aiohttp.Response.to_json() and .text() methods and create an exception with the expected attributes.