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:
Anders Kaseorg
2019-04-19 16:00:46 -07:00
committed by Tim Abbott
parent d1b8497afb
commit 643bd18b9f
65 changed files with 175 additions and 173 deletions

View File

@@ -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