mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-12 20:14:15 +00:00
handle error on flagNsfwByAttachments
This commit is contained in:
parent
0f96567a11
commit
7343f5df83
@ -23,6 +23,7 @@ if (global.isProduction) {
|
||||
}
|
||||
|
||||
export default async (payload) => {
|
||||
try {
|
||||
let { url, image, channels = 3 } = payload
|
||||
|
||||
let file = null
|
||||
@ -65,4 +66,8 @@ export default async (payload) => {
|
||||
}
|
||||
|
||||
return predictions
|
||||
} catch (error) {
|
||||
console.error(`Failed to process image >`, error)
|
||||
console.trace()
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user