Set status message for ratelimit error responses

This commit is contained in:
Mark Haines 2014-09-03 09:37:44 +01:00
parent 30ad0c5674
commit 112c7ea315
3 changed files with 12 additions and 6 deletions

View file

@ -39,7 +39,7 @@ class BaseHandler(object):
)
if not allowed:
raise LimitExceededError(
retry_after_ms=1000*(time_allowed - time_now),
retry_after_ms=int(1000*(time_allowed - time_now)),
)