1
0
mirror of https://github.com/home-assistant/core.git synced 2026-02-15 07:36:16 +00:00

Add continue statements for both error cases in IP ban loading

Co-authored-by: frenck <195327+frenck@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-11-25 10:33:17 +00:00
parent d2dc752328
commit 6a3fb703e7

View File

@@ -232,8 +232,10 @@ class IpBanManager:
ip_bans_lookup[ban.ip_address] = ban
except vol.Invalid as err:
_LOGGER.error("Failed to load IP ban %s: %s", ip_info, err)
continue
except ValueError:
_LOGGER.error("Failed to load IP ban: invalid IP address %s", ip_ban)
continue
self.ip_bans_lookup = ip_bans_lookup