We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 84bb766 commit b273457Copy full SHA for b273457
1 file changed
app/security/rate_limiting.py
@@ -79,9 +79,7 @@ def setup_rate_limiting(app: FastAPI) -> None:
79
>>> setup_rate_limiting(app)
80
"""
81
app.state.limiter = limiter
82
- app.add_exception_handler(
83
- RateLimitExceeded, _rate_limit_exceeded_handler # type: ignore[arg-type]
84
- )
+ app.add_exception_handler(RateLimitExceeded, _rate_limit_exceeded_handler)
85
86
logger.info(
87
"rate_limiting_configured",
0 commit comments