summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Maslek <jmaslek11@gmail.com>2022-11-29 13:22:22 -0500
committerGitHub <noreply@github.com>2022-11-29 19:22:22 +0100
commita12b788ea9cf382cccb54cf525cc7fc19b6f03d8 (patch)
tree7ebfaccc42dd90a3a14db68b9e1b8691d1a0a42b
parent72aac683a128beb29d8139ab98a99a9818d05645 (diff)
remove export choices on export argument (#3655)
* remove export choices * Error message
-rw-r--r--openbb_terminal/helper_funcs.py3
-rw-r--r--openbb_terminal/parent_classes.py1
2 files changed, 2 insertions, 2 deletions
diff --git a/openbb_terminal/helper_funcs.py b/openbb_terminal/helper_funcs.py
index 4a7ee62dd64..f50245cae09 100644
--- a/openbb_terminal/helper_funcs.py
+++ b/openbb_terminal/helper_funcs.py
@@ -1243,7 +1243,8 @@ def check_file_type_saved(valid_types: List[str] = None):
valid_filenames.append(filename)
else:
console.print(
- f"[red]Filename '{filename}' provided is not valid![/red]"
+ f"[red]Filename '{filename}' provided is not valid!\nPlease use one of the following file types:"
+ f"{','.join(valid_types)}[/red]\n"
)
return ",".join(valid_filenames)
diff --git a/openbb_terminal/parent_classes.py b/openbb_terminal/parent_classes.py
index 9355f29535f..d85d7d2d4b6 100644
--- a/openbb_terminal/parent_classes.py
+++ b/openbb_terminal/parent_classes.py
@@ -747,7 +747,6 @@ class BaseController(metaclass=ABCMeta):
type=check_file_type_saved(choices_export),
dest="export",
help=help_export,
- choices=choices_export,
)
if raw: