Skip to content

Commit

Permalink
any error is an error
Browse files Browse the repository at this point in the history
  • Loading branch information
mariusandra committed Apr 26, 2024
1 parent 6345ad7 commit 7619db9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions posthog/batch_exports/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,7 +245,7 @@ def serialize_hogql_query_to_batch_export_schema(self, hogql_query: ast.SelectQu
"values": {},
"hogql_query": print_prepared_ast(hogql_query, context=context, dialect="hogql"),
}
except errors.ExposedHogQLError:
except errors.BaseHogQLError:
raise serializers.ValidationError("Unsupported HogQL query")

for field in hogql_query.select:
Expand All @@ -255,7 +255,7 @@ def serialize_hogql_query_to_batch_export_schema(self, hogql_query: ast.SelectQu
context=context,
dialect="clickhouse",
)
except errors.ExposedHogQLError:
except errors.BaseHogQLError:
raise serializers.ValidationError("Unsupported HogQL query")

if isinstance(field, ast.Alias):
Expand Down

0 comments on commit 7619db9

Please sign in to comment.