Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lmangani authored Nov 12, 2023
1 parent 9eacecd commit cf240db
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,9 @@ def clickhouse():
result, errmsg = chdb_query_with_errmsg(query.strip(), format)
if len(errmsg) == 0:
return result, 200
if len(result) > 0:
print("warning:", errmsg)
return result, 200
return errmsg, 400

@app.route('/', methods=["POST"])
Expand Down

0 comments on commit cf240db

Please sign in to comment.