more cleanup

This commit is contained in:
Danglewood
2024-11-18 23:26:03 -08:00
parent 8337346cf5
commit 2934cbe9f8

View File

@@ -158,7 +158,7 @@ class WebSocketClient:
try:
self._setup_database()
except DatabaseError as e:
msg = f"Unexpected error setting up the SQLite database and table -> {e.__class___.__name__}: {e.__str__()}"
msg = f"Unexpected error setting up the SQLite database and table -> {e.__class___.__name__}: {e}"
self.logger.error(msg)
self._exception = OpenBBError(msg)
@@ -765,7 +765,9 @@ def send_message(
else:
client.logger.error("Broadcast process is not running.")
except Exception as e:
msg = f"Error sending message to WebSocket process: {e.__class__.__name__} -> {e.__str__()}"
msg = (
f"Error sending message to WebSocket process: {e.__class__.__name__} -> {e}"
)
client.logger.error(msg)