Skip to content

Commit

Permalink
reverting change on the clickhouse_querylog_query
Browse files Browse the repository at this point in the history
exception handling.
  • Loading branch information
nachivrn committed Nov 5, 2024
1 parent afe2668 commit 3b54a5c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions snuba/admin/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,9 +738,10 @@ def clickhouse_querylog_query() -> Response:
}
return make_response(jsonify({"error": details}), 400)
except InvalidCustomQuery as err:
return make_response(
jsonify({"error": {"message": str(err)}}),
return Response(
json.dumps({"error": {"message": str(err)}}, indent=4),
400,
{"Content-Type": "application/json"},
)
except Exception as err:
return make_response(
Expand Down

0 comments on commit 3b54a5c

Please sign in to comment.