fix: correct exception type on repository id comparison

This commit is contained in:
2026-01-14 13:58:11 +02:00
parent 49cf91ea52
commit 00c4f32294
2 changed files with 3 additions and 3 deletions

View File

@@ -94,7 +94,7 @@ class RepositoryId:
TypeError: if other is different from RepositoryId type
"""
if not isinstance(other, RepositoryId):
raise ValueError(f"'<' not supported between instances of '{type(self)}' and '{type(other)}'")
raise TypeError(f"'<' not supported between instances of '{type(self)}' and '{type(other)}'")
return (self.name, self.architecture) < (other.name, other.architecture)