diff --git a/headphones/webserve.py b/headphones/webserve.py index 267b78bc..a4063000 100644 --- a/headphones/webserve.py +++ b/headphones/webserve.py @@ -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