-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when using get_license_detection_from_nameless_paragraph()
#25
Comments
The issue was not with the code but rather with the
When we import these paragraphs, the license is not saved to the |
@JonoYang IMHO the parser should accept and recognize these damaged copyright files using a "Licence" English spelling and treating this as a License field. And the code should not crash there |
* Add test to ensure license information is saved in the right field Signed-off-by: Jono Yang <jyang@nexb.com>
Rename licence field to license in from_fields #25
This was fixed in #26 and released in https://github.com/nexB/debian-inspector/releases/tag/v31.0.0. Closing! |
I was running the scancode.io Docker pipeline on a Docker image and I got the following error:
I don't have the full stack trace, but it appears that issue is that we're trying to get the value for the key
license
at https://github.com/nexB/debian-inspector/blob/main/src/debian_inspector/copyright.py#L182, but the keylicense
does not exist inself.line_numbers_by_field
.The text was updated successfully, but these errors were encountered: