updated error handling

This commit is contained in:
DeSqBlocki committed 2025-12-07 12:30:53 +01:00
1 parent 87cadac2d6
commit db813fc41e
1 file changed
+1 -3
+1 -3
View File
@@ -54,8 +54,6 @@ async function runJob(job) {
// ========== CAPTCHA / ERROR DETECTION ==========
const suspicious =
exitCode !== 0 ||
// general
output.toLowerCase().includes("captcha") ||
output.toLowerCase().includes("403") ||
output.toLowerCase().includes("blocked") ||
@@ -79,7 +77,7 @@ async function runJob(job) {
await failedCol.insertOne({
filename: job.filename,
failed_at: new Date(),
output_log: output,
output_log: `[${exitCode}: ${output}]`,
});
// Unset the processing flag so the job isn't stuck