diff --git a/beetsplug/convert.py b/beetsplug/convert.py index d52d2dc3c..671435c6c 100644 --- a/beetsplug/convert.py +++ b/beetsplug/convert.py @@ -86,9 +86,12 @@ def convert_item(lib, dest_dir): item.path = dest item.write() - artpath = lib.get_album(item).artpath - if artpath and config['convert']['embed']: - _embed(artpath, [item]) + if config['convert']['embed']: + album = lib.get_album(item) + if album: + artpath = album.artpath + if artpath: + _embed(artpath, [item]) def convert_func(lib, opts, args):