diff --git a/openbb_terminal/custom_prompt_toolkit.py b/openbb_terminal/custom_prompt_toolkit.py index 06a1c57290e..4cffe2e8879 100644 --- a/openbb_terminal/custom_prompt_toolkit.py +++ b/openbb_terminal/custom_prompt_toolkit.py @@ -259,7 +259,7 @@ class NestedCompleter(Completer): elif same_flags[1] in self.flags_processed: self.flags_processed.remove(same_flags[1]) - if cmd: + if cmd and self.original_options.get(cmd): self.options = { k: self.original_options.get(cmd).options[k] # type: ignore for k in self.original_options.get(cmd).options.keys() # type: ignore