From 529872e7f25367552c473bea0b2fc233f9796341 Mon Sep 17 00:00:00 2001 From: Robbie Coomber Date: Thu, 19 Oct 2023 16:20:29 +0100 Subject: [PATCH] Silently accept having no valid query runner --- posthog/hogql_queries/apply_dashboard_filters.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/posthog/hogql_queries/apply_dashboard_filters.py b/posthog/hogql_queries/apply_dashboard_filters.py index 580735b6137c1e..709ef4d7835ca3 100644 --- a/posthog/hogql_queries/apply_dashboard_filters.py +++ b/posthog/hogql_queries/apply_dashboard_filters.py @@ -11,7 +11,10 @@ def apply_dashboard_filters(query: dict, filters: dict, team: Team) -> dict: source = apply_dashboard_filters(query["source"], filters, team) return {**query, "source": source} - query_runner = get_query_runner(query, team) + try: + query_runner = get_query_runner(query, team) + except ValueError: + return query try: return query_runner.apply_dashboard_filters(DashboardFilter(**filters)).dict() except NotImplementedError: