Replace pylint broad-exception-raised rule with ruff (#123021)

This commit is contained in:
epenet 2024-08-02 12:24:03 +02:00 committed by GitHub
parent 5446dd92a9
commit ad26db7dc8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 26 additions and 35 deletions

View file

@ -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"])