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

apev2: don't raise KeyError when parsing an invalid key #623

Merged
merged 1 commit into from Jul 27, 2023

Conversation

lazka
Copy link
Member

@lazka lazka commented Jul 22, 2023

The parsing code was depending on setitem checking if the key was valid and raising KeyError, but we only want MutagenError during parsing.

Call is_valid_apev2_key() explicitely and raise APEBadItemError instead.

The parsing code was depending on __setitem__ checking if the key
was valid and raising KeyError, but we only want MutagenError
during parsing.

Call is_valid_apev2_key() explicitely and raise APEBadItemError
instead.
@lazka
Copy link
Member Author

lazka commented Jul 22, 2023

@lazka lazka merged commit c0f5457 into quodlibet:master Jul 27, 2023
19 checks passed
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.

None yet

1 participant