wuvt: don't blow up if listeners is None

master
mutantmonkey 2018-01-22 20:01:56 -08:00
parent 55ae9ebbc9
commit fd9f7c7064
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ def wuvt(phenny, input):
except:
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(
"{dj} is currently playing \"{title}\" by {artist} with "
"{listeners:d} online listeners".format(