diff --git a/pyproject.toml b/pyproject.toml index e2916165..4fe1a036 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -97,6 +97,7 @@ select = [ "PIE", # flake8-pie "PYI", # flake8-pyi "RET", # flake8-return + "RSE", # flake8-raise "RUF", # ruff-specific rules "S", # flake8-bandit "SIM", # flake8-simplify diff --git a/tuf/ngclient/_internal/trusted_metadata_set.py b/tuf/ngclient/_internal/trusted_metadata_set.py index 09977285..7e4790a3 100644 --- a/tuf/ngclient/_internal/trusted_metadata_set.py +++ b/tuf/ngclient/_internal/trusted_metadata_set.py @@ -240,7 +240,7 @@ def update_timestamp(self, data: bytes) -> Timestamp: ) # Keep using old timestamp if versions are equal. if new_timestamp.version == self.timestamp.version: - raise exceptions.EqualVersionNumberError() + raise exceptions.EqualVersionNumberError # Prevent rolling back snapshot version snapshot_meta = self.timestamp.snapshot_meta