Better exception message for library find exact

This commit is contained in:
Thomas Adamcik 2010-04-30 22:23:05 +02:00
parent d5b80c7885
commit 9c612d1c52

View File

@ -211,7 +211,7 @@ class GStreamerLibraryController(BaseLibraryController):
elif type == 'artist':
filter_func = lambda t: filter(lambda a: a.name == query, t.artists)
else:
raise LookupError('Invalid lookup type')
raise LookupError('Invalid lookup type: %s' % type)
tracks = filter(filter_func, self._uri_mapping.values())
return Playlist(tracks=tracks)