Enable Ruff B014 (#88377)
This commit is contained in:
parent
83e5bf7ae8
commit
1caacab8dd
2 changed files with 2 additions and 1 deletions
|
@ -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(
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue