Change rate limit method from pace to throw

This will help with debugging.
This commit is contained in:
Jason McBrayer 2018-05-22 08:12:39 -04:00
parent 50a44d1a43
commit 7af72887e9
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ def get_mastodon(request):
client_secret = client.client_secret,
api_base_url = client.api_base_id,
access_token = request.session['access_token'],
ratelimit_method='pace')
ratelimit_method='throw')
else:
try:
client = Client.objects.get(api_base_id=request.session['instance'])
@ -41,7 +41,7 @@ def get_mastodon(request):
client_secret = client.client_secret,
access_token = user.access_token,
api_base_url = client.api_base_id,
ratelimit_method="pace")
ratelimit_method="throw")
return mastodon
def fullbrutalism_p(request):