mirror of
https://github.com/beetbox/beets.git
synced 2026-01-09 17:33:51 +01:00
scrub: Catch IOErrors in command (fix #1297)
This commit is contained in:
parent
46ba99ce79
commit
465719a208
2 changed files with 7 additions and 2 deletions
|
|
@ -70,8 +70,11 @@ class ScrubPlugin(BeetsPlugin):
|
|||
|
||||
# Get album art if we need to restore it.
|
||||
if opts.write:
|
||||
mf = mediafile.MediaFile(item.path,
|
||||
config['id3v23'].get(bool))
|
||||
try:
|
||||
mf = mediafile.MediaFile(item.path,
|
||||
config['id3v23'].get(bool))
|
||||
except IOError as exc:
|
||||
self._log.error(u'scrubbing failed: {0}', exc)
|
||||
art = mf.art
|
||||
|
||||
# Remove all tags.
|
||||
|
|
|
|||
|
|
@ -93,6 +93,8 @@ Fixes:
|
|||
* Improve error messages when parsing query strings with shlex. :bug:`1290`
|
||||
* :doc:`/plugins/embedart`: Fix a crash that occured when used together
|
||||
with the *check* plugin. :bug:`1241`
|
||||
* :doc:`/plugins/scrub`: Log an error instead of stopping when the ``beet
|
||||
scrub`` command cannot write a file. :bug:`1297`
|
||||
|
||||
For developers:
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue