diff --git a/backend/src/data/Phisherman.ts b/backend/src/data/Phisherman.ts index 24073bd8..c50f67b1 100644 --- a/backend/src/data/Phisherman.ts +++ b/backend/src/data/Phisherman.ts @@ -130,6 +130,11 @@ async function fetchDomainInfo(domain: string): Promise>("GET", `/v2/domains/info/${domain}`); const domainInfo = result[domain]; + if (!domainInfo) { + // tslint:disable-next-line:no-console + console.warn("Unexpected Phisherman API response:", result); + return null; + } if (domainInfo.classification === "unknown") { return null; }