From 22308fd069e6e187abf428e5d2c6be02315bbcad Mon Sep 17 00:00:00 2001 From: Ghlerrix Date: Sat, 2 Sep 2023 15:41:10 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=20=E4=BF=AE=E5=A4=8DpushUrl=E6=9C=AA?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E7=9B=B8=E5=85=B3Secrets=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 之前的修复版本未考虑充分,这次从yml中进行空值判断 --- pushUrl.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pushUrl.py b/pushUrl.py index edd86418..d67edf14 100644 --- a/pushUrl.py +++ b/pushUrl.py @@ -89,15 +89,9 @@ if __name__ == '__main__': # 推送bing if args.bing_api_key: push_to_bing(args.url, urls, args.bing_api_key) - else: - print('未配置 Bing API Key') - print('详情参见: https://ghlcode.cn/fe032806-5362-4d82-b746-a0b26ce8b9d9') # 推送百度 if args.baidu_token: push_to_baidu(args.url, urls, args.baidu_token) - else: - print('未配置 Baidu Token') - print('详情参见: https://ghlcode.cn/fe032806-5362-4d82-b746-a0b26ce8b9d9') else: print('请前往 Github Action Secrets 配置 URL') print('详情参见: https://ghlcode.cn/fe032806-5362-4d82-b746-a0b26ce8b9d9')