summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Delahunty <72827203+colin99d@users.noreply.github.com>2022-09-30 09:32:05 +0200
committerGitHub <noreply@github.com>2022-09-30 09:32:05 +0200
commitb0f89745377b0bcad488118bb466e943327b0b67 (patch)
tree54728d58a4b263302bfb0ca01b9447e0ebc17c13
parentab843d32fe5bd02df27caf17e7901abef3daf377 (diff)
Fix bug in reports (#2680)
-rw-r--r--openbb_terminal/reports/reports_controller.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbb_terminal/reports/reports_controller.py b/openbb_terminal/reports/reports_controller.py
index ccbd1428594..1704b0a1ddf 100644
--- a/openbb_terminal/reports/reports_controller.py
+++ b/openbb_terminal/reports/reports_controller.py
@@ -94,7 +94,8 @@ class ReportController(BaseController):
for param in range(len(def_params) - 1):
def_params[param] = def_params[param][:-1]
- l_params.remove("report_name")
+ if "report_name" in l_params:
+ l_params.remove("report_name")
d_params[report_to_run] = [l_params, def_params]
# On the menu of choices add the parameters necessary for each template report