From 40d403b182a2694eded90da40a685f307062c59c Mon Sep 17 00:00:00 2001 From: Remy Date: Sun, 24 Jul 2011 00:38:36 -0700 Subject: [PATCH] Small fix for artists with no albums --- headphones/webserve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/headphones/webserve.py b/headphones/webserve.py index cf083568..686ff6b5 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -102,7 +102,8 @@ class WebInterface(object): page.append('''

%s

''' % artist[0][0]) - page.append(templates.displayAlbums(ArtistID, 'Album')) + if templates.displayAlbums(ArtistID, 'Album'): + page.append(templates.displayAlbums(ArtistID, 'Album')) releasetypes = ['Compilation', 'EP', 'Single', 'Live', 'Remix']