We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 98449a1 commit e49ea35Copy full SHA for e49ea35
tidalapi/session.py
@@ -739,8 +739,9 @@ def token_refresh(self, refresh_token: str) -> bool:
739
request = self.request_session.post(url, params)
740
json = request.json()
741
if request.status_code != 200:
742
- raise AuthenticationError("Authentication failed")
743
- # raise AuthenticationError(Authentication failed json["error"], json["error_description"])
+ raise AuthenticationError(
+ f"Authentication failed with error '{json['error']}: {json['error_description']}'"
744
+ )
745
if not request.ok:
746
log.warning("The refresh token has expired, a new login is required.")
747
return False
0 commit comments