From 959a05845811c8ae70d993220fdc7db1a5efd6dd Mon Sep 17 00:00:00 2001 From: Christopher Larson Date: Mon, 15 Jul 2019 07:20:37 -0700 Subject: [PATCH] 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 --- beets/library.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/beets/library.py b/beets/library.py index 4c7fb894c..59791959d 100644 --- a/beets/library.py +++ b/beets/library.py @@ -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):