输出到日志-NoneType导致的推导式错误

This commit is contained in:
crpa33 2025-04-02 11:48:36 +08:00 committed by GitHub
parent 2c4af2337e
commit eaf14721f8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,8 +164,10 @@ class BilibiliCrawler(AbstractCrawler):
task_list = []
try:
task_list = [self.get_video_info_task(aid=video_item.get("aid"), bvid="", semaphore=semaphore) for video_item in video_list]
finally:
pass
except Exception as e :
utils.logger.error(
f"[BilibiliCrawler.search] {comments_res}"
)
video_items = await asyncio.gather(*task_list)
for video_item in video_items:
if video_item: