diff --git a/openbb_terminal/reports/templates/equity.ipynb b/openbb_terminal/reports/templates/equity.ipynb index 10f4cbfbc17..2171f267999 100644 --- a/openbb_terminal/reports/templates/equity.ipynb +++ b/openbb_terminal/reports/templates/equity.ipynb @@ -1350,12 +1350,13 @@ " + scorr_similar\n", " ]\n", ")\n", - "htmlcode += widgets.row(\n", - " [\n", - " widgets.h(3, f\"Income data for similar companies to {symbol}\")\n", - " + income_comparison.to_html()\n", - " ]\n", - ")\n", + "if isinstance(income_comparison, pd.DataFrame):\n", + " htmlcode += widgets.row(\n", + " [\n", + " widgets.h(3, f\"Income data for similar companies to {symbol}\")\n", + " + income_comparison.to_html()\n", + " ]\n", + " )\n", "htmlcode += widgets.row(\n", " [\n", " widgets.p(\n",