From 4799af1ba9078ecda84413acbfb74b0a4b1f6c9f Mon Sep 17 00:00:00 2001 From: Richard Neumann Date: Sat, 26 Dec 2020 00:54:45 +0100 Subject: [PATCH] Fixed ValueError handling. --- rcon/console.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rcon/console.py b/rcon/console.py index 18e5cf5..f937861 100644 --- a/rcon/console.py +++ b/rcon/console.py @@ -38,7 +38,7 @@ def read_port() -> int: try: port = int(port) - except KeyboardInterrupt: + except ValueError: print(f'Invalid integer: {port}') continue