Skip to content

Commit

Permalink
style: correct call to logger.exception (#294)
Browse files Browse the repository at this point in the history
  • Loading branch information
domoritz authored Feb 13, 2024
1 parent da6d8e6 commit 8dbf716
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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(e)
logger.exception("Eror processing query")
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(e)
logger.exception("Error reading message from WebSocket")
handler.error(e)
return

Expand Down
2 changes: 1 addition & 1 deletion packages/widget/mosaic_widget/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ def _handle_custom_msg(self, data: dict, buffers: list):
else:
raise ValueError(f"Unknown command {command}")
except Exception as e:
logger.exception()
logger.exception("Error processing query")
self.send({"error": str(e), "uuid": uuid})

total = round((time.time() - start) * 1_000)
Expand Down

0 comments on commit 8dbf716

Please sign in to comment.