Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

properly handle keyboard interrupt #27

Conversation

seregayoga
Copy link
Contributor

I added keyboard interrupt handling to fix this error
Traceback (most recent call last): File "/usr/local/bin/kube-shell", line 11, in <module> sys.exit(cli()) File "/usr/local/lib/python3.6/site-packages/kubeshell/main.py", line 22, in cli kube_shell.run_cli() File "/usr/local/lib/python3.6/site-packages/kubeshell/kubeshell.py", line 175, in run_cli completer=completer) File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/shortcuts.py", line 548, in prompt eventloop=eventloop) File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/shortcuts.py", line 625, in run_application result = cli.run() File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/interface.py", line 432, in run return self.return_value() File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/interface.py", line 820, in return_value return self._return_value() File "/usr/local/lib/python3.6/site-packages/prompt_toolkit/interface.py", line 584, in keyboard_interrupt raise KeyboardInterrupt() KeyboardInterrupt

@murali-reddy murali-reddy merged commit 2395e8c into cloudnativelabs:master Jul 5, 2017
@murali-reddy
Copy link
Member

Thanks @seregayoga for the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants