From 22079830173bd137aec0ba4b525172391ffd2c66 Mon Sep 17 00:00:00 2001 From: Eilles Wan Date: Fri, 3 Feb 2023 09:26:18 +0000 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3SSL=E6=8A=A5=E9=94=99?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Eilles Wan --- llc_cli.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/llc_cli.py b/llc_cli.py index c331b4c..ad53575 100644 --- a/llc_cli.py +++ b/llc_cli.py @@ -89,6 +89,7 @@ except ModuleNotFoundError as E: try: from utils.magicBeing import * import requests + import requests.exceptions except ModuleNotFoundError as E: if input( "您需要安装以下模块才能使用这个样例\nrequests==2.28.1\nrich==12.6.0\nzhdate==0.1\n请问是否安装?(y/n):" @@ -179,7 +180,7 @@ else: style="#121110 on #F0F2F4", justify="center", ) - except ConnectionError: + except ConnectionError, requests.exceptions.SSLError: MainConsole.print( "[#121110 on #F0F2F4]以梦想为驱使 创造属于自己的未来", style="#121110 on #F0F2F4",