mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 21:13:36 +00:00
lint: Fix code that evaded our lint checks for string % non-tuple.
Signed-off-by: Anders Kaseorg <anders@zulipchat.com>
This commit is contained in:
committed by
Tim Abbott
parent
d1b8497afb
commit
643bd18b9f
@@ -23,7 +23,7 @@ class _RateLimitFilter:
|
||||
|
||||
# Track duplicate errors
|
||||
duplicate = False
|
||||
rate = getattr(settings, '%s_LIMIT' % self.__class__.__name__.upper(),
|
||||
rate = getattr(settings, '%s_LIMIT' % (self.__class__.__name__.upper(),),
|
||||
600) # seconds
|
||||
if rate > 0:
|
||||
# Test if the cache works
|
||||
|
||||
Reference in New Issue
Block a user