Skip to content

Commit

Permalink
Silently accept having no valid query runner
Browse files Browse the repository at this point in the history
  • Loading branch information
robbie-c committed Oct 19, 2023
1 parent 5fc6527 commit 529872e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion posthog/hogql_queries/apply_dashboard_filters.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 529872e

Please sign in to comment.