diff --git a/posthog/batch_exports/http.py b/posthog/batch_exports/http.py index b33449e542466..8635da593b975 100644 --- a/posthog/batch_exports/http.py +++ b/posthog/batch_exports/http.py @@ -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: @@ -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):