Skip to content

Commit

Permalink
Update server and widget (#293)
Browse files Browse the repository at this point in the history
* fix: Pass exception to logger.

* chore: Use DuckDB 9.2 in server and widget.
  • Loading branch information
jheer authored Feb 13, 2024
1 parent 475a79d commit da6d8e6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/duckdb-server/pkg/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def handle_query(handler: Handler, con, cache, query):
else:
raise ValueError(f"Unknown command {command}")
except Exception as e:
logger.exception()
logger.exception(e)
handler.error(e)

total = round((time.time() - start) * 1_000)
Expand Down Expand Up @@ -134,7 +134,7 @@ def ws_message(ws, message, opcode):
try:
query = ujson.loads(message)
except Exception as e:
logger.exception()
logger.exception(e)
handler.error(e)
return

Expand Down
2 changes: 1 addition & 1 deletion packages/duckdb-server/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"diskcache",
"duckdb==0.8.1",
"duckdb==0.9.2",
"pandas",
"pyarrow",
"socketify",
Expand Down
2 changes: 1 addition & 1 deletion packages/widget/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ readme = "README.md"
requires-python = ">=3.9"
dependencies = [
"anywidget>=0.9.0",
"duckdb==0.8.1",
"duckdb==0.9.2",
"pyarrow"
]

Expand Down

0 comments on commit da6d8e6

Please sign in to comment.