From faeec2964d567b19e9cbb1ec46c4fccae6a70cdc Mon Sep 17 00:00:00 2001 From: AdminWhaleFall Date: Tue, 26 Apr 2022 20:33:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E5=90=8C=E6=97=B6?= =?UTF-8?q?=E4=BF=AE=E5=A4=8Dpyinstall=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- smsboom_pyinstall.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/smsboom_pyinstall.py b/smsboom_pyinstall.py index 99d9eaa..b2ba648 100644 --- a/smsboom_pyinstall.py +++ b/smsboom_pyinstall.py @@ -119,7 +119,8 @@ def run(thread: int, phone: Union[str, tuple], interval: int, super: bool = Fals _api = load_json() _api_get = load_getapi() except ValueError: - logger.error("接口获取出错!请update更新接口.") + logger.error("读取接口出错!正在重新下载接口数据!....") + update() sys.exit(1) i = 0 if super: @@ -172,4 +173,5 @@ cli.add_command(update) if __name__ == "__main__": + logger.info(f"当前脚本目录:{path}") cli()