diff --git a/src/worker-script/index.js b/src/worker-script/index.js index 4321a8ff..f6e95647 100644 --- a/src/worker-script/index.js +++ b/src/worker-script/index.js @@ -118,7 +118,7 @@ res) => { throw Error('Not found in cache'); } // Attempt to fetch new .traineddata file - } catch (e) { + } catch { newData = true; log(`[${workerId}]: Load ${lang}.traineddata from ${langPath}`); if (typeof _lang === 'string') {