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
@@ -831,7 +831,7 @@ def rate_limit(domain: str='all') -> Callable[[ViewFuncT], ViewFuncT]:
|
||||
|
||||
if not user: # nocoverage # See comments below
|
||||
logging.error("Requested rate-limiting on %s but user is not authenticated!" %
|
||||
func.__name__)
|
||||
(func.__name__,))
|
||||
return func(request, *args, **kwargs)
|
||||
|
||||
if isinstance(user, AnonymousUser): # nocoverage
|
||||
|
||||
Reference in New Issue
Block a user