Log less about common connection errors

This commit is contained in:
Deko
2024-03-03 10:19:37 +01:00
parent d5aff81e56
commit 231b83c8a7

View File

@@ -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: