diff --git a/homeassistant/components/whois/sensor.py b/homeassistant/components/whois/sensor.py index 3c78d80ba92..dc9da1100f0 100644 --- a/homeassistant/components/whois/sensor.py +++ b/homeassistant/components/whois/sensor.py @@ -44,7 +44,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None): "WHOIS lookup for %s didn't contain an expiration date", domain ) return - except whois.BaseException as ex: + except whois.BaseException as ex: # pylint: disable=broad-except _LOGGER.error("Exception %s occurred during WHOIS lookup for %s", ex, domain) return @@ -96,7 +96,7 @@ class WhoisSensor(Entity): """Get the current WHOIS data for the domain.""" try: response = self.whois(self._domain) - except whois.BaseException as ex: + except whois.BaseException as ex: # pylint: disable=broad-except _LOGGER.error("Exception %s occurred during WHOIS lookup", ex) self._empty_state_and_attributes() return diff --git a/pylintrc b/pylintrc index 44659ddb376..3235d583865 100644 --- a/pylintrc +++ b/pylintrc @@ -64,4 +64,4 @@ ignored-classes=_CountingAttr expected-line-ending-format=LF [EXCEPTIONS] -overgeneral-exceptions=Exception,HomeAssistantError +overgeneral-exceptions=BaseException,Exception,HomeAssistantError