Merge pull request #2934 from pratstercs/develop

Bug (#2933) - Can't remove artist with name "null"
This commit is contained in:
AdeHub
2017-05-02 18:38:17 +12:00
committed by GitHub

View File

@@ -252,7 +252,10 @@ class WebInterface(object):
namecheck = myDB.select('SELECT ArtistName from artists where ArtistID=?', [ArtistID])
for name in namecheck:
artistname = name['ArtistName']
logger.info(u"Deleting all traces of artist: " + artistname)
try:
logger.info(u"Deleting all traces of artist: " + artistname)
except TypeError:
logger.info(u"Deleting all traces of artist: null")
myDB.action('DELETE from artists WHERE ArtistID=?', [ArtistID])
from headphones import cache