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
|
@ -200,7 +200,7 @@ class ReolinkFlowHandler(ConfigFlow, domain=DOMAIN):
|
|||
except (ReolinkError, ReolinkException) as err:
|
||||
placeholders["error"] = str(err)
|
||||
errors[CONF_HOST] = "cannot_connect"
|
||||
except Exception as err: # pylint: disable=broad-except
|
||||
except Exception as err:
|
||||
_LOGGER.exception("Unexpected exception")
|
||||
placeholders["error"] = str(err)
|
||||
errors[CONF_HOST] = "unknown"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue