diff --git a/openvpn/connector/main.py b/openvpn/connector/main.py index 0f432e5..e5df786 100644 --- a/openvpn/connector/main.py +++ b/openvpn/connector/main.py @@ -103,8 +103,13 @@ def main(): token is provided. This token is used by this utility to download the proper VPN configuration profile and complete the configuration.\n""") - token = input('Enter setup token: ') - print("") + try: + token = input('Enter setup token: ') + print("") + except KeyboardInterrupt: + print('\n\nAborting\n') + sys.exit(0) + else: token = cliopts.token[0]