Log less about common connection errors
This commit is contained in:
@@ -116,10 +116,8 @@ class TwitchClient:
|
|||||||
},
|
},
|
||||||
params={"user_login": self.streamer},
|
params={"user_login": self.streamer},
|
||||||
)
|
)
|
||||||
except requests.exceptions.ConnectionError as err:
|
except requests.exceptions.ConnectionError:
|
||||||
logger.opt(exception=err).warning(
|
logger.warning("Getting streams failed with a connection Error.")
|
||||||
"Getting streams failed with a connection Error, more details below."
|
|
||||||
)
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
if response.status_code == 401:
|
if response.status_code == 401:
|
||||||
|
|||||||
Reference in New Issue
Block a user