From 231b83c8a7dbb42cc930ff0c46b02d6ce64fda74 Mon Sep 17 00:00:00 2001 From: Deko Date: Sun, 3 Mar 2024 10:19:37 +0100 Subject: [PATCH] Log less about common connection errors --- app/twitch_client.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/app/twitch_client.py b/app/twitch_client.py index 9bd224e..cac248a 100644 --- a/app/twitch_client.py +++ b/app/twitch_client.py @@ -116,10 +116,8 @@ class TwitchClient: }, params={"user_login": self.streamer}, ) - except requests.exceptions.ConnectionError as err: - logger.opt(exception=err).warning( - "Getting streams failed with a connection Error, more details below." - ) + except requests.exceptions.ConnectionError: + logger.warning("Getting streams failed with a connection Error.") return None if response.status_code == 401: