Enable Ruff B014 (#88377)

This commit is contained in:
Franck Nijhof 2023-02-18 14:38:04 +01:00 committed by GitHub
parent 83e5bf7ae8
commit 1caacab8dd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View file

@ -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(

View file

@ -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