This commit is contained in:
Jing Ling
2020-11-12 02:18:15 +08:00
parent 8849b9cf15
commit 6e9c5b4f74
2 changed files with 2 additions and 4 deletions
+1 -4
View File
@@ -219,10 +219,7 @@ def bulk_request(domain, req_data, ret=False):
urls_queue = Queue() urls_queue = Queue()
total = len(req_data) total = len(req_data)
for index, info in enumerate(req_data): for index, info in enumerate(req_data):
try: url = info.get('url')
url = info.get('url')
except Exception:
pass
urls_queue.put((index, url)) urls_queue.put((index, url))
session = get_session() session = get_session()
thread_count = req_thread_count() thread_count = req_thread_count()
+1
View File
@@ -523,6 +523,7 @@ def check_net():
logger.log('DEBUG', f'The computer is located in China') logger.log('DEBUG', f'The computer is located in China')
return True, True return True, True
else: else:
logger.log('DEBUG', f'The computer is not located in China')
return True, False return True, False