Skip to content

Commit

Permalink
inner quotes
Browse files Browse the repository at this point in the history
  • Loading branch information
deeleeramone committed Dec 18, 2024
1 parent a4fda30 commit fb38ad2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ async def _setup_database(self):
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
Expand Down Expand Up @@ -226,7 +226,7 @@ def write_to_db(self, message) -> None:
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
Expand Down Expand Up @@ -280,7 +280,7 @@ def deserialize_row(self, row: str) -> Union["BaseModel", Any]:
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
Expand All @@ -293,7 +293,7 @@ def fetch_all(self, limit: Optional[int] = None) -> list:
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
Expand Down Expand Up @@ -416,7 +416,7 @@ def clear_results(self) -> None:
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
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def __init__( # noqa: PLR0913 # pylint: disable=too-many-arguments,too-many-po
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)
Expand Down

0 comments on commit fb38ad2

Please sign in to comment.