fix: catch rss parsing failure in a nested try-catch block

This commit is contained in:
Hongbo Wu
2024-01-09 12:04:14 +08:00
parent a2ab8327ca
commit 0969e81de3

View File

@ -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