Added try catch to catch errors from parsing rss
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user