From 1be858c26162ef237f7601c6366ac0685a2e8d4a Mon Sep 17 00:00:00 2001 From: teh_coderer Date: Mon, 13 Mar 2023 13:24:31 -0500 Subject: [PATCH] Update backend.py (#4471) Co-authored-by: James Maslek --- openbb_terminal/core/plots/backend.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/openbb_terminal/core/plots/backend.py b/openbb_terminal/core/plots/backend.py index 64f72415bbf..25e09dbaaaa 100644 --- a/openbb_terminal/core/plots/backend.py +++ b/openbb_terminal/core/plots/backend.py @@ -109,9 +109,13 @@ class Backend(pywry.PyWry): def get_table_html(self) -> str: """Get the table html file.""" if self.table_html.exists(): - return self.get_table_html() - - return str(self.table_html) + return str(self.table_html) + console.print( + "[bold red]table.html file not found, check the path:[/]" + f"[green]{PLOTS_CORE_PATH / 'table.html'}[/]" + ) + self.max_retries = 0 # pylint: disable=W0201 + raise FileNotFoundError def get_window_icon(self) -> str: """Get the window icon."""