diff --git a/lib/v2/eastmoney/report/index.js b/lib/v2/eastmoney/report/index.js index 76b244f0cc..cf08e4e5b7 100644 --- a/lib/v2/eastmoney/report/index.js +++ b/lib/v2/eastmoney/report/index.js @@ -38,11 +38,15 @@ module.exports = async (ctx) => { const items = await Promise.all( list.map((item) => ctx.cache.tryGet(item.link, async () => { - const { data: response } = await got(item.link); - const $ = cheerio.load(response); - item.link = $('.pdf-link').attr('href'); - item.description = $('.ctx-content').text(); - return item; + try { + const { data: response } = await got(item.link); + const $ = cheerio.load(response); + item.link = $('.pdf-link').attr('href'); + item.description = $('.ctx-content').text(); + return item; + } catch (error) { + return item; + } }) ) );