Skip to content

Commit

Permalink
fix for banned twitch username
Browse files Browse the repository at this point in the history
  • Loading branch information
Bombg committed Dec 5, 2024
1 parent 0b4410c commit 98e589a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions checkers/Twitch.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def isModelOnline(twitchChannelName: str):
logger.warning("connection timed out to Twitch. Bot detection or rate limited?")
except requests.exceptions.SSLError:
logger.warning("SSL Error when attempting to connect to Twitch")
except TypeError:
logger.warning("twitch user banned or doesn't exist")
thumbUrl = GetThumbnail(tempThumbUrl, Constants.twitchThumbnail)
return isOnline, title, thumbUrl, icon

Expand Down

0 comments on commit 98e589a

Please sign in to comment.