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

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