diff --git a/openbb_terminal/core/plots/backend.py b/openbb_terminal/core/plots/backend.py index 78872194810..c91cba2facc 100644 --- a/openbb_terminal/core/plots/backend.py +++ b/openbb_terminal/core/plots/backend.py @@ -110,11 +110,11 @@ class Backend(PyWry): self.init_engine: list = [] return pending - def get_plotly_html(self) -> Path: + def get_plotly_html(self) -> str: """Get the plotly html file.""" self.set_window_dimensions() if self.plotly_html.exists(): - return self.plotly_html + return str(self.plotly_html) console.print( "[bold red]plotly.html file not found, check the path:[/]" @@ -123,11 +123,11 @@ class Backend(PyWry): self.max_retries = 0 # pylint: disable=W0201 raise FileNotFoundError - def get_table_html(self) -> Path: + def get_table_html(self) -> str: """Get the table html file.""" self.set_window_dimensions() if self.table_html.exists(): - return 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'}[/]"