From fd9f7c7064625068569f2b9fd6e960b5bd13922b Mon Sep 17 00:00:00 2001 From: mutantmonkey Date: Mon, 22 Jan 2018 20:01:56 -0800 Subject: [PATCH] wuvt: don't blow up if listeners is None --- modules/wuvt.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/wuvt.py b/modules/wuvt.py index e51c81f..8849c28 100644 --- a/modules/wuvt.py +++ b/modules/wuvt.py @@ -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(