This commit is contained in:
@@ -1781,16 +1781,11 @@ class Session(Closeable, MessageListener, SubListener):
|
|||||||
else:
|
else:
|
||||||
self.logger.warning("Login5 authentication failed: {}".format(login5_response.error))
|
self.logger.warning("Login5 authentication failed: {}".format(login5_response.error))
|
||||||
else:
|
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(
|
self.logger.debug(
|
||||||
"Login5 request failed with status: %s", response.status_code
|
"Login5 request failed with status: %s", response.status_code
|
||||||
)
|
)
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Also treat unexpected Login5 issues as debug-only noise.
|
self.logger.warning("Failed to authenticate with Login5: {}".format(e))
|
||||||
self.logger.debug("Failed to authenticate with Login5: %s", e)
|
|
||||||
|
|
||||||
def get_login5_token(self) -> typing.Union[str, None]:
|
def get_login5_token(self) -> typing.Union[str, None]:
|
||||||
"""Get the Login5 access token if available and not expired"""
|
"""Get the Login5 access token if available and not expired"""
|
||||||
|
|||||||
Reference in New Issue
Block a user