Replace pylint broad-except with Ruff BLE001 (#116250)
This commit is contained in:
parent
b35fbd8d20
commit
2cc916db6d
335 changed files with 459 additions and 459 deletions
|
@ -66,7 +66,7 @@ class SMSFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||
imei = await get_imei_from_config(self.hass, user_input)
|
||||
except CannotConnect:
|
||||
errors["base"] = "cannot_connect"
|
||||
except Exception: # pylint: disable=broad-except
|
||||
except Exception:
|
||||
_LOGGER.exception("Unexpected exception")
|
||||
errors["base"] = "unknown"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue