Fix #2351: crash in scrub on MediaFile errors

This commit is contained in:
Adrian Sampson 2016-12-28 16:36:51 -05:00
parent 24d43635cd
commit 413666a825
2 changed files with 3 additions and 0 deletions

View file

@ -122,6 +122,7 @@ class ScrubPlugin(BeetsPlugin):
except mediafile.UnreadableFileError as exc:
self._log.error(u'could not open file to scrub: {0}',
exc)
return
art = mf.art
# Remove all tags.

View file

@ -23,6 +23,8 @@ Features:
Fixes:
* :doc:`/plugins/bpd`: Fix a crash on non-ASCII MPD commands. :bug:`2332`
* :doc:`/plugins/scrub`: Avoid a crash when files cannot be read or written.
:bug:`2351`
For plugin developers: new importer prompt choices (see :ref:`append_prompt_choices`), you can now provide new candidates for the user to consider.