mirror of
https://github.com/beetbox/beets.git
synced 2025-12-22 16:43:25 +01:00
convert: log error instead of crashing
This commit is contained in:
parent
9090f0979f
commit
c20c62409d
2 changed files with 8 additions and 1 deletions
|
|
@ -190,7 +190,12 @@ def convert_item(dest_dir, keep_new, path_formats):
|
|||
if album:
|
||||
artpath = album.artpath
|
||||
if artpath:
|
||||
_embed(artpath, [item])
|
||||
try:
|
||||
_embed(artpath, [item.path])
|
||||
except IOError as exc:
|
||||
log.warn(u'could not embed cover art in {0}: {1}'
|
||||
.format(util.displayable_path(item.path),
|
||||
exc))
|
||||
|
||||
plugins.send('after_convert', item=item, dest=dest, keepnew=keep_new)
|
||||
|
||||
|
|
|
|||
|
|
@ -27,6 +27,8 @@ Fixes:
|
|||
stream by ignoring it. Thanks to brunal.
|
||||
* :doc:`/plugins/fetchart`: Log an error instead of crashing when tag
|
||||
manipulation fails.
|
||||
* :doc:`/plugins/convert`: Log an error instead of crashing when
|
||||
embedding album art fails.
|
||||
|
||||
|
||||
1.3.5 (April 15, 2014)
|
||||
|
|
|
|||
Loading…
Reference in a new issue