Skip to content

Commit 98e589a

Browse files
committed
fix for banned twitch username
1 parent 0b4410c commit 98e589a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

checkers/Twitch.py

+2
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ def isModelOnline(twitchChannelName: str):
3636
logger.warning("connection timed out to Twitch. Bot detection or rate limited?")
3737
except requests.exceptions.SSLError:
3838
logger.warning("SSL Error when attempting to connect to Twitch")
39+
except TypeError:
40+
logger.warning("twitch user banned or doesn't exist")
3941
thumbUrl = GetThumbnail(tempThumbUrl, Constants.twitchThumbnail)
4042
return isOnline, title, thumbUrl, icon
4143

0 commit comments

Comments
 (0)