Treat invalid unban input as a no-op

This commit is contained in:
Nomads_Reach
2026-08-15 21:09:39 -04:00
parent 6080015eb1
commit dfc826d14d
+4 -1
View File
@@ -167,7 +167,10 @@ class BanStore:
return entry
def unban_ip(self, ip: str) -> bool:
normalized = self._normalize_ip(ip)
try:
normalized = self._normalize_ip(ip)
except ValueError:
return False
with self._lock:
if normalized not in self._bans:
return False