From fb38ad2d307777c561fc3e3256f1598b0a896792 Mon Sep 17 00:00:00 2001 From: Danglewood <85772166+deeleeramone@users.noreply.github.com> Date: Tue, 17 Dec 2024 17:05:56 -0800 Subject: [PATCH] inner quotes --- .../openbb_core/provider/utils/websockets/database.py | 10 +++++----- .../extensions/websockets/openbb_websockets/client.py | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/openbb_platform/core/openbb_core/provider/utils/websockets/database.py b/openbb_platform/core/openbb_core/provider/utils/websockets/database.py index e1aa70bb99a..f711776766c 100644 --- a/openbb_platform/core/openbb_core/provider/utils/websockets/database.py +++ b/openbb_platform/core/openbb_core/provider/utils/websockets/database.py @@ -141,7 +141,7 @@ class Database: except Exception as e: msg = ( "Unexpected error while creating SQLite database ->" - f" {e.__class__.__name__ if hasattr(e, "__class__") else e.__name__}: {e}" + f" {e.__class__.__name__ if hasattr(e, '__class__') else e.__name__}: {e}" ) self.logger.error(msg) self._exception = e @@ -226,7 +226,7 @@ class Database: except Exception as e: # pylint: disable=broad-except msg = ( "Unexpected error while writing to SQLite database ->" - f" {e.__class__.__name__ if hasattr(e, "__class__") else e.__name__}: {e}" + f" {e.__class__.__name__ if hasattr(e, '__class__') else e.__name__}: {e}" ) self.logger.error(msg) self._exception = e @@ -280,7 +280,7 @@ class Database: except Exception as e: msg = ( "Unexpected error while deserializing row -> " - f" {e.__class__.__name__ if hasattr(e, "__class__") else e.__name__}: {e}" + f" {e.__class__.__name__ if hasattr(e, '__class__') else e.__name__}: {e}" ) self.logger.error(msg) self._exception = e @@ -293,7 +293,7 @@ class Database: except Exception as e: msg = ( "Unexpected error while reading from SQLite database ->" - f" {e.__class__.__name__ if hasattr(e, "__class__") else e.__name__}: {e}" + f" {e.__class__.__name__ if hasattr(e, '__class__') else e.__name__}: {e}" ) self.logger.error(msg) self._exception = e @@ -416,7 +416,7 @@ class Database: except Exception as e: # pylint: disable=broad-except msg = ( "Error clearing results: " - f" {e.__class__.__name__ if hasattr(e, "__class__") else e.__name__}: {e}" + f" {e.__class__.__name__ if hasattr(e, '__class__') else e.__name__}: {e}" ) self.logger.error(msg) raise OpenBBError(msg) from e diff --git a/openbb_platform/extensions/websockets/openbb_websockets/client.py b/openbb_platform/extensions/websockets/openbb_websockets/client.py index f32bb7ce1ec..82b04254c1c 100644 --- a/openbb_platform/extensions/websockets/openbb_websockets/client.py +++ b/openbb_platform/extensions/websockets/openbb_websockets/client.py @@ -169,7 +169,7 @@ class WebSocketClient: # pylint: disable=too-many-instance-attributes except Exception as e: # pylint: disable=broad-except msg = ( "Unexpected error setting up the SQLite database and table ->" - f" {e.__class__.__name__ if hasattr(e, "__class__") else e.__name__}: {e}" + f" {e.__class__.__name__ if hasattr(e, '__class__') else e.__name__}: {e}" ) self.logger.error(msg) self._exception = OpenBBError(msg)