fix(queue-worker): don't send scraping errors to sentry

This commit is contained in:
Gergő Móricz 2024-09-23 18:48:01 +02:00
parent 677faa27f3
commit d927cafeea
1 changed files with 1 additions and 1 deletions

View File

@ -448,7 +448,7 @@ async function processJob(job: Job, token: string) {
} catch (error) {
Logger.error(`🐂 Job errored ${job.id} - ${error}`);
if (!(error instanceof Error && error.message.includes("JSON parsing error(s): "))) {
if (!(error instanceof Error && (error.message.includes("JSON parsing error(s): ") || error.message.startsWith('{"type":"all",')))) {
Sentry.captureException(error, {
data: {
job: job.id,