Sync from GitHub main #1

Open
nomad wants to merge 145 commits from sync/from-github into main
Showing only changes of commit dfc826d14d - Show all commits
+3
View File
@@ -167,7 +167,10 @@ class BanStore:
return entry return entry
def unban_ip(self, ip: str) -> bool: def unban_ip(self, ip: str) -> bool:
try:
normalized = self._normalize_ip(ip) normalized = self._normalize_ip(ip)
except ValueError:
return False
with self._lock: with self._lock:
if normalized not in self._bans: if normalized not in self._bans:
return False return False