diff options
Diffstat (limited to 'python/function.py')
| -rw-r--r-- | python/function.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/python/function.py b/python/function.py index e0d179b2..bdd04590 100644 --- a/python/function.py +++ b/python/function.py @@ -752,7 +752,7 @@ class Function(object): def __lt__(self, value): if not isinstance(value, Function): - return False + raise TypeError("Can only compare to other Function objects") return self.start < value.start def __eq__(self, value): |
