SpotiClub Patch v0.2.0
Some checks failed
CodeQL / Analyze (python) (push) Has been cancelled

This commit is contained in:
unknown
2025-12-18 03:22:14 +01:00
parent 8a7d0fa3c8
commit 30f7654301

View File

@@ -1781,16 +1781,11 @@ class Session(Closeable, MessageListener, SubListener):
else:
self.logger.warning("Login5 authentication failed: {}".format(login5_response.error))
else:
# Login5 is best-effort; if it fails (e.g. 403 or
# region restrictions), we silently skip it to
# avoid confusing the user when the main
# connection has already failed.
self.logger.debug(
"Login5 request failed with status: %s", response.status_code
)
except Exception as e:
# Also treat unexpected Login5 issues as debug-only noise.
self.logger.debug("Failed to authenticate with Login5: %s", e)
self.logger.warning("Failed to authenticate with Login5: {}".format(e))
def get_login5_token(self) -> typing.Union[str, None]:
"""Get the Login5 access token if available and not expired"""