except BaseException

This commit is contained in:
shmilylty
2019-08-07 15:50:13 +08:00
parent cfd60b366c
commit 0fee65dd36
+1 -1
View File
@@ -67,7 +67,7 @@ async def fetch(session, url, semaphore):
def request_callback(future, index, datas):
try:
resp, text = future.result()
except Exception as e:
except BaseException as e:
logger.log('DEBUG', e.args)
datas[index]['reason'] = str(e.args)
datas[index]['valid'] = 0