From 602b38eb7a6896607814d7929e2c311710c33e43 Mon Sep 17 00:00:00 2001 From: Deko Date: Sat, 18 Mar 2023 16:08:07 +0100 Subject: [PATCH] Use correct exception for twitch api timeout --- app/twitch_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/twitch_client.py b/app/twitch_client.py index b275e35..c1778c9 100644 --- a/app/twitch_client.py +++ b/app/twitch_client.py @@ -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