Merge pull request #3364 from kergoth/empty-album-error

library: show album id in empty album error
This commit is contained in:
Adrian Sampson 2019-09-10 19:04:01 -04:00 committed by GitHub
commit 0077c0514b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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):