This commit is contained in:
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user