Fix broad-exception-raised in component tests (#119467)

This commit is contained in:
epenet 2024-06-12 17:53:42 +02:00 committed by GitHub
parent aaa674955c
commit 3d1165519d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 9 additions and 9 deletions

View file

@ -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(