mirror of
https://github.com/shmilylty/OneForAll.git
synced 2026-08-26 21:07:50 +08:00
except BaseException
This commit is contained in:
@@ -67,7 +67,7 @@ async def fetch(session, url, semaphore):
|
|||||||
def request_callback(future, index, datas):
|
def request_callback(future, index, datas):
|
||||||
try:
|
try:
|
||||||
resp, text = future.result()
|
resp, text = future.result()
|
||||||
except Exception as e:
|
except BaseException as e:
|
||||||
logger.log('DEBUG', e.args)
|
logger.log('DEBUG', e.args)
|
||||||
datas[index]['reason'] = str(e.args)
|
datas[index]['reason'] = str(e.args)
|
||||||
datas[index]['valid'] = 0
|
datas[index]['valid'] = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user