Skip to content

Commit

Permalink
codeql: fix exeption warning
Browse files Browse the repository at this point in the history
Signed-off-by: matthias.gatto <[email protected]>
  • Loading branch information
outscale-mgo committed Oct 5, 2023
1 parent 09297b0 commit be9734c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion osc_tui/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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!
Expand Down

0 comments on commit be9734c

Please sign in to comment.