Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

rate_limiter: Fix PIE790 Unnecessary `pass` statement.

Anders Kaseorgf338c3af0788
diff --git a/zerver/lib/rate_limiter.py b/zerver/lib/rate_limiter.py
index 338d07ea5a9..d7977cd3a1a 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)