Skip to content

Commit f55d2fb

Browse files
authored
Merge pull request #131 from nexB/npm-issue
Fixes the NPM import
2 parents 2612199 + 110c2ca commit f55d2fb

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

vulnerabilities/scraper/npm.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,10 @@ def scrape_vulnerabilities():
117117
"""
118118
nextpage = PAGE
119119
package_vulnerabilities = []
120-
121120
while nextpage:
122121
cururl = NPM_URL.format(nextpage)
123122
response = json.load(urlopen(cururl))
124-
package_vulnerabilities = package_vulnerabilities.extend(extract_data(data))
125-
next_page = data.get('urls', {}).get('next')
123+
package_vulnerabilities.extend(extract_data(response))
124+
next_page = response.get('urls', {}).get('next')
126125

127126
return package_vulnerabilities

0 commit comments

Comments
 (0)