diff --git a/src/drivers/npm/driver.js b/src/drivers/npm/driver.js index 33545d15b..367321316 100644 --- a/src/drivers/npm/driver.js +++ b/src/drivers/npm/driver.js @@ -995,7 +995,7 @@ class Site { ]) } catch (error) { this.analyzedUrls[url.href] = { - status: this.analyzedUrls[url.href].status || 0, + status: this.analyzedUrls[url.href]?.status || 0, error: error.message || error.toString(), }