Skip to content

Fix NoneType iteration error in npm miner when versions are missing#839

Open
Monal-Reddy wants to merge 1 commit intoaboutcode-org:mainfrom
Monal-Reddy:fix-npm-nonetype-error
Open

Fix NoneType iteration error in npm miner when versions are missing#839
Monal-Reddy wants to merge 1 commit intoaboutcode-org:mainfrom
Monal-Reddy:fix-npm-nonetype-error

Conversation

@Monal-Reddy
Copy link

Prevent a crash in the npm miner when project_data.get("versions") returns None.
Add a guard to skip packages without a versions field instead of iterating over None.
Fixes #837

Signed-off-by: Monal-Reddy <monalreddy001@gmail.com>
@Monal-Reddy Monal-Reddy force-pushed the fix-npm-nonetype-error branch from 4d84056 to 4833e89 Compare March 12, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error while running mine_npm pipeline

2 participants