From 112c7ea315bdf341fc56a190138c290a5b7acffc Mon Sep 17 00:00:00 2001 From: Mark Haines Date: Wed, 3 Sep 2014 09:37:44 +0100 Subject: Set status message for ratelimit error responses --- synapse/handlers/_base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'synapse/handlers/_base.py') 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)), ) -- cgit 1.4.1