diff options
author | Benjamin Schubert <contact@benschubert.me> | 2019-07-26 10:41:31 +0100 |
---|---|---|
committer | Benjamin Schubert <contact@benschubert.me> | 2019-07-26 10:41:31 +0100 |
commit | 367f073386c7dc3870ff7fee4764ecd00aa2dc80 (patch) | |
tree | 34a62491a91a6c3e55e0209b487d7394a1862980 | |
parent | 0b118ed2e7ef47f85e941d22512f17db43e43035 (diff) | |
download | buildstream-367f073386c7dc3870ff7fee4764ecd00aa2dc80.tar.gz |
fixup! WIP
-rw-r--r-- | src/buildstream/_types.pyx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buildstream/_types.pyx b/src/buildstream/_types.pyx index 14118078d..53e22ff61 100644 --- a/src/buildstream/_types.pyx +++ b/src/buildstream/_types.pyx @@ -66,12 +66,12 @@ class FastEnum(metaclass=MetaFastEnum): def __lt__(self, other): if type(self) != type(other): - return NotImplemented + raise ValueError("Unexpected comparison between {} and {}".format(self, repr(other))) return self.value < other.value def __ge__(self, other): if type(self) != type(other): - return NotImplemented + return ValueError("Unexpected comparison between {} and {}".format(self, repr(other))) return self.value >= other.value def __eq__(self, other): |