New API: Fix exception message for version

Signed-off-by: Martin Vrachev <mvrachev@vmware.com>
This commit is contained in:
Martin Vrachev 2021-03-24 15:55:29 +02:00
parent b5c8ba007e
commit cbc814ffa8

View file

@ -317,7 +317,7 @@ def __init__(
# TODO: Should we separate data validation from constructor?
if version < 0:
raise ValueError(f"version must be < 0, got {version}")
raise ValueError(f"version must be >= 0, got {version}")
self.version = version
@staticmethod