mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-03 00:41:15 -05:00
Dont use generic try-except clauses
This commit is contained in:
parent
122eedd11d
commit
2bb47b716b
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user