From 41564aea49030f9547642f939b25ff7cbb05db47 Mon Sep 17 00:00:00 2001 From: dskvr Date: Sun, 17 Mar 2024 00:58:05 +0100 Subject: [PATCH] fix retries --- apps/nocapd/src/classes/Worker.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/nocapd/src/classes/Worker.js b/apps/nocapd/src/classes/Worker.js index dcbb6c19..324cc0e5 100644 --- a/apps/nocapd/src/classes/Worker.js +++ b/apps/nocapd/src/classes/Worker.js @@ -216,8 +216,9 @@ export class NWWorker { } if(error) { + const retries = await this.retry.getRetries(url) progress += `${error? chalk.gray.italic('error'): ''} ` - progress += `[${await this.retry.getRetries(url)} retries}]` + progress += `[${retries !== null? retries: 0} retries]` } this.log.info(progress)