From 4d76b91a1abfd948641fd4c317d3b321b2b32462 Mon Sep 17 00:00:00 2001 From: Scoder12 <34356756+Scoder12@users.noreply.github.com> Date: Wed, 12 Aug 2020 16:40:52 -0700 Subject: [PATCH] Change status to be int instead of str --- src/replit/maqpy/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/replit/maqpy/utils.py b/src/replit/maqpy/utils.py index 2b52cd3..27b4a01 100644 --- a/src/replit/maqpy/utils.py +++ b/src/replit/maqpy/utils.py @@ -187,7 +187,7 @@ def authed_ratelimit( # Make a reponse object so that status can be set if not isinstance(res, flask.Response): res = flask.make_response(res) - res.status = "429" + res.status = 429 return res num_requests[name] = times_requested + 1