fix: catch rss parsing failure in a nested try-catch block
This commit is contained in:
@ -185,7 +185,7 @@ const parseFeed = async (url: string, content: string) => {
|
||||
}
|
||||
}
|
||||
|
||||
return parser.parseString(content)
|
||||
return await parser.parseString(content)
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user