diff --git a/app.js b/app.js index fbad538d..fd5467f3 100644 --- a/app.js +++ b/app.js @@ -88,7 +88,9 @@ if (!_.isEmpty(config.apikey)) { }) .catch((err) => { cmlog.error(new Error(`Error => "${cryptoName} ${err}"`)); - if (err && err.response && err.response.status === 400) { + + //&& err.response && err.response.status === 400 + if (err) { cmlog.error(new Error(`Crypto icon not found => "${cryptoName}"`)); const csvWriter = createCsvWriter({ @@ -100,9 +102,12 @@ if (!_.isEmpty(config.apikey)) { const records = [{ name: cryptoName }]; csvWriter - .writeRecords(records) // returns a promise + .writeRecords(records) .then(() => { cmlog.info(`Crypto add blacklist => ${cryptoName}"`); + }) + .catch((err) => { + cmlog.error(new Error(`Error write icon in blacklist => "${cryptoName}"`)); }); } }); diff --git a/blacklist.csv b/blacklist.csv index f6deadd7..cab71861 100644 --- a/blacklist.csv +++ b/blacklist.csv @@ -14,9 +14,14 @@ xtoken wntr kei peepo +crazytime hina charixtoken bite avatar pawg clit +hdpф +τbtc +τdoge +tulip₿