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 for read-only file crash #547

Merged
merged 2 commits into from Sep 24, 2021
Merged

Conversation

blueblots
Copy link
Contributor

@blueblots blueblots commented Oct 10, 2020

Added import for MutagenError to catch the exception.
With these changes no tags are written to the file in the
event of a mutagen error, but the trace is still output to
the console.

A nice addition would be a dialog warning that the files are
read-only when trying to write tags. (I am not versed in PyQt,
otherwise I would do it myself.)

An error dialog is now displayed when a file has a permission error.

Fixes #546

Fixes #628

Added import for MutagenError to catch the exception.
With these changes no tags are written to the file in the
event of a mutagen error, but the trace is still output to
the console.

A nice addition would be a dialog warning that the files are
read-only when trying to write tags. (I am not versed in PyQt,
otherwise I would do it myself.)

Fixes issue: puddletag#546
@blueblots
Copy link
Contributor Author

blueblots commented Sep 22, 2021

I've gotten this to work now, I'll upload the changes today.

It's now ready to be merged.

Also added a conditional to check if the MutagenError is actually
a permission error.
@sandrotosi sandrotosi merged commit 8d05d77 into puddletag:master Sep 24, 2021
@sandrotosi
Copy link
Member

thanks @blueblots !

@blueblots blueblots deleted the perm-crash branch September 24, 2021 16:21
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.

Crash when updating read only file Crash when trying to save tags on read-only files
3 participants