From 920b3476d576679ec5907fbeefbd1bcda27ff4e1 Mon Sep 17 00:00:00 2001 From: colin99d Date: Fri, 17 Mar 2023 11:12:04 -0400 Subject: [PATCH] Improve handling for dot in ticker --- openbb_terminal/reports/reports_controller.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/openbb_terminal/reports/reports_controller.py b/openbb_terminal/reports/reports_controller.py index f4782e74cba8..41e941a54075 100644 --- a/openbb_terminal/reports/reports_controller.py +++ b/openbb_terminal/reports/reports_controller.py @@ -195,6 +195,11 @@ def run_report(self, report_name: str, other_args: List[str]): ns_parser = self.parse_simple_args(parser, other_args) if ns_parser: + if report_name == "equity" and "." in ns_parser.symbol: + console.print( + "[red]Cannot currently handle tickers with a '.' in them[/red]\n" + ) + return cfg.LOGGING_SUPPRESS = True parameters = vars(ns_parser) parameters.pop("help")