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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user