不使用https

This commit is contained in:
Jing Ling
2020-04-27 00:08:52 +08:00
parent 2d9b7924ab
commit b49d2242aa
+1 -1
View File
@@ -488,7 +488,7 @@ def delete_file(*paths):
@tenacity.retry(stop=tenacity.stop_after_attempt(2))
def check_net():
logger.log('INFOR', '正在检查网络环境')
url = 'https://www.example.com/'
url = 'http://www.example.com/'
logger.log('INFOR', f'访问地址 {url}')
try:
rsp = requests.get(url)