Improve handling for dot in ticker (#4513)

This commit is contained in:
Colin Delahunty
2023-03-17 11:32:28 -04:00
committed by GitHub
parent 165898f7da
commit 4ea20eb50d

View File

@@ -195,6 +195,11 @@ class ReportController(BaseController):
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")