Added try catch to catch errors from parsing rss

This commit is contained in:
Logan Cusano
2023-02-26 12:51:19 -05:00
parent a9bc2383ba
commit dd0a64aff0

View File

@@ -90,6 +90,7 @@ exports.updateFeeds = async (client) => {
//return;
}
try{
log.DEBUG("Parsed Feed Keys", Object.keys(parsedFeed), parsedFeed?.title);
if (parsedFeed?.items){
@@ -122,6 +123,9 @@ exports.updateFeeds = async (client) => {
}
}
}
}catch (err) {
log.ERROR("Error Parsing Feed: ", source.link, err);
}
});
}
});