Fix broad-exception-raised in component tests (#119467)
This commit is contained in:
parent
aaa674955c
commit
3d1165519d
9 changed files with 9 additions and 9 deletions
|
@ -130,7 +130,7 @@ def get_suggested(schema, key):
|
|||
return None
|
||||
return k.description["suggested_value"]
|
||||
# Wanted key absent from schema
|
||||
raise Exception
|
||||
raise KeyError("Wanted key absent from schema")
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue