From be9734cdf5b4c9e6f97a6f4e01d14cca4db2a5a0 Mon Sep 17 00:00:00 2001 From: "matthias.gatto" Date: Tue, 3 Oct 2023 10:16:46 +0200 Subject: [PATCH] codeql: fix exeption warning Signed-off-by: matthias.gatto --- osc_tui/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osc_tui/main.py b/osc_tui/main.py index 42c2149..96aa5ec 100644 --- a/osc_tui/main.py +++ b/osc_tui/main.py @@ -28,7 +28,7 @@ SECURITY_RULE = None try: IP = get("https://api.ipify.org").text -except BaseException: +except (Exception,KeyboardInterrupt): IP="UNKNOW" # Because it's cool but also a DDOS attack :) # So let's be cool with the API --> No auto refresh!