From f338c3af07883939c21f6367e1b2eb3fc7d5385c Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Mon, 9 Oct 2023 11:15:49 -0700 Subject: [PATCH] rate_limiter: Fix PIE790 Unnecessary `pass` statement. Signed-off-by: Anders Kaseorg --- zerver/lib/rate_limiter.py | 1 - 1 file changed, 1 deletion(-) diff --git a/zerver/lib/rate_limiter.py b/zerver/lib/rate_limiter.py index 338d07ea5a..d7977cd3a1 100644 --- a/zerver/lib/rate_limiter.py +++ b/zerver/lib/rate_limiter.py @@ -589,7 +589,6 @@ def rate_limit_request_by_ip(request: HttpRequest, domain: str) -> None: # We log a warning so that this endpoint being taken out of # service doesn't silently remove this functionality. logger.warning("Failed to fetch TOR exit node list: %s", err) - pass RateLimitedIPAddr(ip_addr, domain=domain).rate_limit_request(request)