Skip to content

Commit

Permalink
Merge 92257a8 into 41f7e80
Browse files Browse the repository at this point in the history
  • Loading branch information
sechkova committed Apr 21, 2021
2 parents 41f7e80 + 92257a8 commit e7e0988
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tuf/api/metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,8 @@ def __init__(
self.expires = expires

# TODO: Should we separate data validation from constructor?
if version < 0:
raise ValueError(f"version must be >= 0, got {version}")
if version <= 0:
raise ValueError(f"version must be > 0, got {version}")
self.version = version

@staticmethod
Expand Down

0 comments on commit e7e0988

Please sign in to comment.