mirror of
https://github.com/arcan1s/ahriman.git
synced 2026-03-14 05:53:39 +00:00
fix: correct exception type on repository id comparison
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user