mirror of
https://github.com/RYDE-WORK/MediaCrawler.git
synced 2026-02-06 17:03:21 +08:00
输出到日志-NoneType导致的推导式错误
This commit is contained in:
parent
2c4af2337e
commit
eaf14721f8
@ -164,8 +164,10 @@ class BilibiliCrawler(AbstractCrawler):
|
|||||||
task_list = []
|
task_list = []
|
||||||
try:
|
try:
|
||||||
task_list = [self.get_video_info_task(aid=video_item.get("aid"), bvid="", semaphore=semaphore) for video_item in video_list]
|
task_list = [self.get_video_info_task(aid=video_item.get("aid"), bvid="", semaphore=semaphore) for video_item in video_list]
|
||||||
finally:
|
except Exception as e :
|
||||||
pass
|
utils.logger.error(
|
||||||
|
f"[BilibiliCrawler.search] {comments_res}"
|
||||||
|
)
|
||||||
video_items = await asyncio.gather(*task_list)
|
video_items = await asyncio.gather(*task_list)
|
||||||
for video_item in video_items:
|
for video_item in video_items:
|
||||||
if video_item:
|
if video_item:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user