Replace pylint broad-except with Ruff BLE001 (#116250)

This commit is contained in:
Sid 2024-05-07 14:00:27 +02:00 committed by GitHub
parent b35fbd8d20
commit 2cc916db6d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
335 changed files with 459 additions and 459 deletions

View file

@ -106,7 +106,7 @@ class PlugwiseConfigFlow(ConfigFlow, domain=DOMAIN):
CONF_PASSWORD: config_entry.data[CONF_PASSWORD],
},
)
except Exception: # pylint: disable=broad-except
except Exception: # noqa: BLE001
self._abort_if_unique_id_configured()
else:
self._abort_if_unique_id_configured(
@ -188,7 +188,7 @@ class PlugwiseConfigFlow(ConfigFlow, domain=DOMAIN):
errors[CONF_BASE] = "response_error"
except UnsupportedDeviceError:
errors[CONF_BASE] = "unsupported"
except Exception: # pylint: disable=broad-except
except Exception: # noqa: BLE001
errors[CONF_BASE] = "unknown"
else:
await self.async_set_unique_id(