mirror of
https://github.com/beetbox/beets.git
synced 2026-01-06 07:53:40 +01:00
library: show album id in empty album error
This makes it possible to recover from this case, as you can correct whatever caused it, by either fixing album ids on tracks or removing the empty album id. Signed-off-by: Christopher Larson <kergoth@gmail.com>
This commit is contained in:
parent
00ac5928c1
commit
959a058458
1 changed files with 1 additions and 1 deletions
|
|
@ -1119,7 +1119,7 @@ class Album(LibModel):
|
|||
"""
|
||||
item = self.items().get()
|
||||
if not item:
|
||||
raise ValueError(u'empty album')
|
||||
raise ValueError(u'empty album for album id %d' % self.id)
|
||||
return os.path.dirname(item.path)
|
||||
|
||||
def _albumtotal(self):
|
||||
|
|
|
|||
Loading…
Reference in a new issue