handle error on flagNsfwByAttachments

This commit is contained in:
SrGooglo 2023-07-20 13:25:42 +00:00
parent 0f96567a11
commit 7343f5df83

View File

@ -23,6 +23,7 @@ if (global.isProduction) {
} }
export default async (payload) => { export default async (payload) => {
try {
let { url, image, channels = 3 } = payload let { url, image, channels = 3 } = payload
let file = null let file = null
@ -65,4 +66,8 @@ export default async (payload) => {
} }
return predictions return predictions
} catch (error) {
console.error(`Failed to process image >`, error)
console.trace()
}
} }