Skip to content
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

Recover properties lost during conversion #279

Merged
merged 3 commits into from
Nov 11, 2022

Conversation

armintaenzertng
Copy link
Collaborator

fixes #278

Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
Signed-off-by: Armin Tänzer <armin.taenzer@tngtech.com>
Copy link
Collaborator

@meretp meretp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, I have nothing to comment on.

Copy link
Collaborator

@nicoweidner nicoweidner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there are some redundant try/catch blocks. I will leave it up to you whether you want to fix those in this PR

Comment on lines +905 to +908
except CardinalityError:
self.more_than_one_error("FILE_ATTRIBUTION_TEXT")
except OrderError:
self.order_error("FILE_ATTRIBUTION_TEXT", "FILE_NAME")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find a spot where these errors are raised. If you can't find one either, we can just remove the try/catch blocks

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we will leave it to the larger refactoring

@armintaenzertng armintaenzertng merged commit 07c8c2b into spdx:main Nov 11, 2022
@armintaenzertng armintaenzertng deleted the recoverLostProperties branch November 11, 2022 16:05
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.

Recover missing properties during parsing/writing
3 participants