Skip to content
Snippets Groups Projects
Commit 7bb0fee3 authored by David Douard's avatar David Douard Committed by Antoine Lambert
Browse files

Fix: add an assertion in throttling.py to please mypy 1.14

We are currently pinning mypy 1.13.0, but even if mypy<1.14 does not
complain without this assertion, it should. So let's fix it right now.
parent ade2b0a1
No related branches found
No related tags found
No related merge requests found
Pipeline #12923 failed
......@@ -132,6 +132,7 @@ class SwhWebRateThrottle(ScopedRateThrottle):
)
self.scope = default_scope
assert default_scope is not None
exempted_networks = self.get_exempted_networks(default_scope)
exempted_ip = False
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment