mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-04 16:32:10 +00:00
Fixed cntrld issue (#1952)
This commit is contained in:
@@ -553,7 +553,7 @@ class BaseController(metaclass=ABCMeta):
|
||||
# Get input from user without auto-completion
|
||||
else:
|
||||
an_input = input(f"{get_flair()} {self.PATH} $ ")
|
||||
except KeyboardInterrupt:
|
||||
except (KeyboardInterrupt, EOFError):
|
||||
# Exit in case of keyboard interrupt
|
||||
an_input = "exit"
|
||||
|
||||
|
||||
@@ -489,7 +489,7 @@ def terminal(jobs_cmds: List[str] = None, appName: str = "gst"):
|
||||
completer=t_controller.completer,
|
||||
search_ignore_case=True,
|
||||
)
|
||||
except KeyboardInterrupt:
|
||||
except (KeyboardInterrupt, EOFError):
|
||||
print_goodbye()
|
||||
break
|
||||
# Get input from user without auto-completion
|
||||
|
||||
Reference in New Issue
Block a user