def write_error(self, status_code, **kwargs):
        if "exc_info" in kwargs:
            typ, value, _ = kwargs["exc_info"]
            self.error([(status_code, traceback.format_exception_only(typ, value))])
        else:
            self.error([(status_code, None)])
This should generate an expression that picks the lower value for comparison.
dataset/ETHPy150Open dropbox/grouper/grouper/api/handlers.py/GraphHandler.write_error--crossover with--dataset/ETHPy150Open thedrow/django-natural-query/tests/unit/test_natural_query_descriptor.py/NaturalQueryDescriptorTestCase.test_concated_gt_and_gte_operator_generates_the_right_expression_for_the_greater_than_or_equal_lookup