diff --git a/connect.py b/connect.py index 0721b2ad9..196699778 100644 --- a/connect.py +++ b/connect.py @@ -376,6 +376,8 @@ if __name__ == '__main__': except EOFError: print continue + except KeyboardInterrupt: + sys.exit(0) if option in ['P', 'p']: print_user_host(LOGIN_NAME) continue