Avoid error when filter params not valid

This commit is contained in:
Lance Edgar 2023-05-19 17:43:31 -05:00
parent de13e48aa5
commit ae38e09d1b

View file

@ -271,7 +271,8 @@ class GridFilter(object):
value = self.get_value(value) value = self.get_value(value)
filtr = getattr(self, 'filter_{0}'.format(verb), None) filtr = getattr(self, 'filter_{0}'.format(verb), None)
if not filtr: if not filtr:
raise ValueError("Unknown filter verb: {0}".format(repr(verb))) log.warning("unknown filter verb: %s", verb)
return data
return filtr(data, value) return filtr(data, value)
def get_value(self, value=UNSPECIFIED): def get_value(self, value=UNSPECIFIED):