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

Commit cf240db

Browse files
authored
Update main.py
1 parent 9eacecd commit cf240db

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: main.py

+3
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ def clickhouse():
5959
result, errmsg = chdb_query_with_errmsg(query.strip(), format)
6060
if len(errmsg) == 0:
6161
return result, 200
62+
if len(result) > 0:
63+
print("warning:", errmsg)
64+
return result, 200
6265
return errmsg, 400
6366

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

0 commit comments

Comments
 (0)