diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-09-03 09:37:44 +0100 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-09-03 09:37:44 +0100 |
commit | 112c7ea315bdf341fc56a190138c290a5b7acffc (patch) | |
tree | 7bede512c6bff2de9ea9f5dbf364a17d4e202a9d /synapse/handlers | |
parent | Merge branch 'ratelimiting' into develop (diff) | |
download | synapse-112c7ea315bdf341fc56a190138c290a5b7acffc.tar.xz |
Set status message for ratelimit error responses
Diffstat (limited to 'synapse/handlers')
-rw-r--r-- | synapse/handlers/_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/_base.py b/synapse/handlers/_base.py index 935adea1ac..57429ad2ef 100644 --- a/synapse/handlers/_base.py +++ b/synapse/handlers/_base.py @@ -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)), ) |