Use correct exception for twitch api timeout

This commit is contained in:
Deko
2023-03-18 16:08:07 +01:00
parent bd57b02a54
commit 602b38eb7a

View File

@@ -116,7 +116,7 @@ class TwitchClient:
}, },
params={"user_login": self.streamer}, params={"user_login": self.streamer},
) )
except NewConnectionError: except requests.exceptions.ConnectionError:
logger.warning("Twitch API is not reachable at the moment.") logger.warning("Twitch API is not reachable at the moment.")
return None return None