diff --git a/packages/phishing/src/addrcheck.spec.ts b/packages/phishing/src/addrcheck.spec.ts index 3e9cb1c62..8761fb276 100644 --- a/packages/phishing/src/addrcheck.spec.ts +++ b/packages/phishing/src/addrcheck.spec.ts @@ -34,14 +34,18 @@ async function checkGetWallet (ours: Record, site: string): Pr const found: string[] = []; for (let i = 0; i < 25; i++) { - const result = await (await fetch(`https://${site}/get_wallet.php`)).json() as Record; + try { + const result = await (await fetch(`https://${site}/get_wallet.php`)).json() as Record; - if (result && result.wallet) { - const wallet = result.wallet.replace('\r', ''); + if (result && result.wallet) { + const wallet = result.wallet.replace('\r', ''); - if (!found.includes(wallet)) { - found.push(wallet); + if (!found.includes(wallet)) { + found.push(wallet); + } } + } catch (error) { + // ignore } await delayLoop();