mirror of
https://github.com/zulip/zulip.git
synced 2025-11-07 15:33:30 +00:00
rate_limiter: Fix PIE790 Unnecessary pass statement.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
(cherry picked from commit f338c3af07)
This commit is contained in:
committed by
Tim Abbott
parent
41a6511924
commit
64cb7b5bed
@@ -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
|
# We log a warning so that this endpoint being taken out of
|
||||||
# service doesn't silently remove this functionality.
|
# service doesn't silently remove this functionality.
|
||||||
logger.warning("Failed to fetch TOR exit node list: %s", err)
|
logger.warning("Failed to fetch TOR exit node list: %s", err)
|
||||||
pass
|
|
||||||
RateLimitedIPAddr(ip_addr, domain=domain).rate_limit_request(request)
|
RateLimitedIPAddr(ip_addr, domain=domain).rate_limit_request(request)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user