Dont use generic try-except clauses

This commit is contained in:
Kevin Funk 2012-07-26 20:35:38 +02:00
parent 122eedd11d
commit 2bb47b716b

View File

@ -123,7 +123,7 @@ class LastFM(callbacks.Plugin):
track = t.getElementsByTagName("name")[0].firstChild.data track = t.getElementsByTagName("name")[0].firstChild.data
try: try:
album = "["+t.getElementsByTagName("album")[0].firstChild.data+"]" album = "["+t.getElementsByTagName("album")[0].firstChild.data+"]"
except: except IndexError:
album = "" album = ""
if isNowplaying: if isNowplaying: