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

fix: tagged_file.primary_tag() panics when music file contains no tag #35

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

msandoval
Copy link

@msandoval msandoval commented Aug 18, 2024

I was playing a list of music when I received the following error on a particular song every time:

thread 'main' panicked at src/helpers/gen_funcs.rs:19:42:called Option::unwrap() on a None value

I found the issue. One file I had contained no tags. The tagged_file in gen_funcs.rs doesn't do a check to see if the file contains_tag(). Added in the check and tested and now it no longer panics.

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.

1 participant