diff options
-rwxr-xr-x | tests/kmstest.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/kmstest.py b/tests/kmstest.py index e84d8fe..3e53def 100755 --- a/tests/kmstest.py +++ b/tests/kmstest.py @@ -268,6 +268,8 @@ class AtomicRequest(pykms.AtomicReq): if isinstance(v, str): if v.endswith('%'): prop = obj.get_prop(k) + if not prop: + raise RuntimeError(f'Property {k} not supported by object {obj}') if prop.type not in (pykms.PropertyType.Range, pykms.PropertyType.SignedRange): raise RuntimeError(f'Unsupported property type {prop.type} for value {v}') |