Use correct exception for twitch api timeout
This commit is contained in:
@@ -116,7 +116,7 @@ class TwitchClient:
|
||||
},
|
||||
params={"user_login": self.streamer},
|
||||
)
|
||||
except NewConnectionError:
|
||||
except requests.exceptions.ConnectionError:
|
||||
logger.warning("Twitch API is not reachable at the moment.")
|
||||
return None
|
||||
|
||||
|
||||
Reference in New Issue
Block a user