chore: catch anything thrown out of a fetch

This commit is contained in:
Cory Dransfeldt 2023-05-05 17:32:23 -07:00
parent e9a615de0d
commit 1e25e460fc
No known key found for this signature in database
7 changed files with 11 additions and 9 deletions

View file

@ -5,7 +5,7 @@ module.exports = async function () {
feed.addSource('atom', 'Link', 'https://coryd.dev/links.xml')
feed.addSource('rss', 'Letterboxd', 'https://letterboxd.com/cdme/rss')
feed.addSource('rss', 'Oku', 'https://oku.club/rss/collection/NvEmF')
const entries = feed.getEntries()
const entries = feed.getEntries().catch()
const res = await entries
const activity = { posts: [] }
res.forEach((entry) =>