From ae38e09d1b8c8d755869d3b9628ef17448f79635 Mon Sep 17 00:00:00 2001 From: Lance Edgar Date: Fri, 19 May 2023 17:43:31 -0500 Subject: [PATCH] Avoid error when filter params not valid --- tailbone/grids/filters.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tailbone/grids/filters.py b/tailbone/grids/filters.py index 26ef4f59..59e20d78 100644 --- a/tailbone/grids/filters.py +++ b/tailbone/grids/filters.py @@ -271,7 +271,8 @@ class GridFilter(object): value = self.get_value(value) filtr = getattr(self, 'filter_{0}'.format(verb), None) 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) def get_value(self, value=UNSPECIFIED):