From 0191b25923cef1fc91266e1b8586419de24e706e Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Wed, 16 Sep 2020 20:57:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/utils.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/common/utils.py b/common/utils.py index 8a617e3..6bd49c5 100644 --- a/common/utils.py +++ b/common/utils.py @@ -506,10 +506,8 @@ def delete_file(*paths): @tenacity.retry(stop=tenacity.stop_after_attempt(3)) def check_net(): logger.log('INFOR', 'Checking Internet environment') - urls = ['http://www.example.com', 'http://www.baidu.com', - 'http://www.bing.com', 'http://www.taobao.com', - 'http://www.linkedin.com', 'http://www.msn.com', - 'http://www.apple.com', 'http://microsoft.com'] + urls = ['http://www.baidu.com', 'http://www.bing.com', + 'http://www.apple.com', 'http://www.microsoft.com'] url = random.choice(urls) logger.log('INFOR', f'Trying to access {url}') session = requests.Session()