diff --git a/cli/openbb_cli/config/menu_text.py b/cli/openbb_cli/config/menu_text.py index ed2ba6ddb428..e7be5babae68 100644 --- a/cli/openbb_cli/config/menu_text.py +++ b/cli/openbb_cli/config/menu_text.py @@ -79,8 +79,8 @@ def _format_cmd_name(self, name: str) -> str: self.warnings.append( { "warning": "Command name too long", - "command": name, - "trimmed_command": new_name, + "actual command": f"`{name}`", + "displayed command": f"`{new_name}`", } ) name = new_name diff --git a/cli/openbb_cli/controllers/base_platform_controller.py b/cli/openbb_cli/controllers/base_platform_controller.py index d8363bec9b53..45ddea4bfca0 100644 --- a/cli/openbb_cli/controllers/base_platform_controller.py +++ b/cli/openbb_cli/controllers/base_platform_controller.py @@ -379,9 +379,7 @@ def print_help(self): session.console.print(text=mt.menu_text, menu=self.PATH) - settings = session.settings - dev_mode = settings.DEBUG_MODE or settings.TEST_MODE - if mt.warnings and dev_mode: + if mt.warnings: session.console.print("") for w in mt.warnings: w_str = str(w).replace("{", "").replace("}", "").replace("'", "") diff --git a/openbb_platform/openbb/package/derivatives.py b/openbb_platform/openbb/package/derivatives.py index 09e666eb8606..51216b3b9b23 100644 --- a/openbb_platform/openbb/package/derivatives.py +++ b/openbb_platform/openbb/package/derivatives.py @@ -16,7 +16,7 @@ def __repr__(self) -> str: @property def futures(self): # pylint: disable=import-outside-toplevel - from . import derivatives_futures + from . import derivatives_futures # type: ignore[attr-defined] return derivatives_futures.ROUTER_derivatives_futures( command_runner=self._command_runner diff --git a/openbb_platform/openbb/package/economy.py b/openbb_platform/openbb/package/economy.py index cc13398db974..6f9963cca663 100644 --- a/openbb_platform/openbb/package/economy.py +++ b/openbb_platform/openbb/package/economy.py @@ -2220,7 +2220,7 @@ def short_term_interest_rate( @property def survey(self): # pylint: disable=import-outside-toplevel - from . import economy_survey + from . import economy_survey # type: ignore[attr-defined] return economy_survey.ROUTER_economy_survey(command_runner=self._command_runner) diff --git a/openbb_platform/openbb/package/index.py b/openbb_platform/openbb/package/index.py index c7660b9df8e3..a03d32731d5f 100644 --- a/openbb_platform/openbb/package/index.py +++ b/openbb_platform/openbb/package/index.py @@ -306,6 +306,6 @@ def market( @property def price(self): # pylint: disable=import-outside-toplevel - from . import index_price + from . import index_price # type: ignore[attr-defined] return index_price.ROUTER_index_price(command_runner=self._command_runner) diff --git a/openbb_platform/openbb/package/regulators.py b/openbb_platform/openbb/package/regulators.py index 753e0bfc69aa..b6e83a702a48 100644 --- a/openbb_platform/openbb/package/regulators.py +++ b/openbb_platform/openbb/package/regulators.py @@ -15,6 +15,6 @@ def __repr__(self) -> str: @property def sec(self): # pylint: disable=import-outside-toplevel - from . import regulators_sec + from . import regulators_sec # type: ignore[attr-defined] return regulators_sec.ROUTER_regulators_sec(command_runner=self._command_runner) diff --git a/openbb_platform/providers/oecd/openbb_oecd/models/house_price_index.py b/openbb_platform/providers/oecd/openbb_oecd/models/house_price_index.py index 7d7bf5b54ad0..89ecb353d96b 100644 --- a/openbb_platform/providers/oecd/openbb_oecd/models/house_price_index.py +++ b/openbb_platform/providers/oecd/openbb_oecd/models/house_price_index.py @@ -130,7 +130,9 @@ def country_string(input_str: str): url.replace(".M.RHPI.", ".Q.RHPI."), headers=headers ) if response.status_code != 200: - raise Exception(f"Error with the OECD request: {response.status_code}") + raise OpenBBError( + f"Error with the OECD request (HTTP {response.status_code}): `{response.text}`" + ) df = read_csv(StringIO(response.text)).get( ["REF_AREA", "TIME_PERIOD", "OBS_VALUE"] )