diff --git a/homeassistant/components/azure_devops/__init__.py b/homeassistant/components/azure_devops/__init__.py index 01c0cd123e3..7c63b9ffafa 100644 --- a/homeassistant/components/azure_devops/__init__.py +++ b/homeassistant/components/azure_devops/__init__.py @@ -66,7 +66,7 @@ async def async_setup_entry(hass: HomeAssistant, entry: ConfigEntry) -> bool: entry.data[CONF_PROJECT], BUILDS_QUERY, ) - except (aiohttp.ClientError, aiohttp.ClientError) as exception: + except aiohttp.ClientError as exception: raise UpdateFailed from exception coordinator = DataUpdateCoordinator( diff --git a/pyproject.toml b/pyproject.toml index 6b3904522a0..e0255bbe65b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -241,6 +241,7 @@ target-version = "py310" select = [ "B007", # Loop control variable {name} not used within loop body + "B014", # Exception handler with duplicate exception "C", # complexity "D", # docstrings "E", # pycodestyle