mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 12:57:50 +08:00
修复解析没有结果的问题
This commit is contained in:
@@ -148,7 +148,7 @@ def request_callback(future, index, datas):
|
||||
try:
|
||||
result = future.result()
|
||||
except BaseException as e:
|
||||
logger.log('DEBUG', e.args)
|
||||
logger.log('TRACE', e.args)
|
||||
datas[index]['reason'] = str(e.args)
|
||||
datas[index]['valid'] = 0
|
||||
else:
|
||||
|
||||
@@ -28,7 +28,7 @@ async def dns_query_a(hostname):
|
||||
"""
|
||||
resolver = dns_resolver()
|
||||
try:
|
||||
answer = await resolver.query(hostname, 'A')
|
||||
answer = resolver.query(hostname, 'A')
|
||||
except BaseException as exception:
|
||||
logger.log('TRACE', exception.args)
|
||||
answer = exception
|
||||
|
||||
Reference in New Issue
Block a user