aboutcode-org / scancode-toolkit

:mag: ScanCode detects licenses, copyrights, dependencies by "scanning code" ... to discover and inventory open source and third-party packages used in your code. Sponsored by NLnet project https://nlnet.nl/project/vulnerabilitydatabase, the Google Summer of Code, Azure credits, nexB and others generous sponsors!
https://github.com/aboutcode-org/scancode-toolkit/releases/
2.07k stars 537 forks source link

json2csv.py crashes when an asserted license's license value is null #411

Closed JonoYang closed 7 years ago

JonoYang commented 7 years ago

In the case where the "license" name of a license in "asserted_licenses" is null, as shown below, json2csv.py crashes as a string is expected, but a NoneType was found.

"asserted_licenses": [
  {
    "license": null,
    "url": "license.txt",
    "text": null,
    "notice": null
  }
]
JonoYang commented 7 years ago

Merged in #412