Replace pylint broad-exception-raised rule with ruff (#123021)
This commit is contained in:
parent
5446dd92a9
commit
ad26db7dc8
19 changed files with 26 additions and 35 deletions
|
@ -59,7 +59,7 @@ def get_suggested(schema, key):
|
|||
return None
|
||||
return k.description["suggested_value"]
|
||||
# Wanted key absent from schema
|
||||
raise Exception
|
||||
raise KeyError(f"Key `{key}` is missing from schema")
|
||||
|
||||
|
||||
@pytest.mark.parametrize("platform", ["sensor"])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue