wuvt: don't blow up if listeners is None
This commit is contained in:
@@ -17,7 +17,7 @@ def wuvt(phenny, input):
|
|||||||
except:
|
except:
|
||||||
raise GrumbleError("Failed to fetch current track from WUVT")
|
raise GrumbleError("Failed to fetch current track from WUVT")
|
||||||
|
|
||||||
if 'listeners' in trackinfo:
|
if 'listeners' in trackinfo and trackinfo['listeners'] is not None:
|
||||||
phenny.say(
|
phenny.say(
|
||||||
"{dj} is currently playing \"{title}\" by {artist} with "
|
"{dj} is currently playing \"{title}\" by {artist} with "
|
||||||
"{listeners:d} online listeners".format(
|
"{listeners:d} online listeners".format(
|
||||||
|
|||||||
Reference in New Issue
Block a user