summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-09-03 09:37:44 +0100
committerMark Haines <mark.haines@matrix.org>2014-09-03 09:37:44 +0100
commit112c7ea315bdf341fc56a190138c290a5b7acffc (patch)
tree7bede512c6bff2de9ea9f5dbf364a17d4e202a9d /synapse/handlers
parentMerge branch 'ratelimiting' into develop (diff)
downloadsynapse-112c7ea315bdf341fc56a190138c290a5b7acffc.tar.xz
Set status message for ratelimit error responses
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/_base.py2
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)),
             )