Skip to content

CMLDEV-910 added raise for InitializationError when jwt is incorrect and usernam…#194

Open
vprysiaz wants to merge 1 commit intomainfrom
CMLDEV-910-fixed-flow-with-invalid-jwt-on-init
Open

CMLDEV-910 added raise for InitializationError when jwt is incorrect and usernam…#194
vprysiaz wants to merge 1 commit intomainfrom
CMLDEV-910-fixed-flow-with-invalid-jwt-on-init

Conversation

@vprysiaz
Copy link
Collaborator

…e/password not provided

@PatrikMosko PatrikMosko self-requested a review February 27, 2026 13:32
_LOGGER.warning("re-auth called on 401 unauthorized")
self.token = None
if not (self.client_library.username and self.client_library.password):
raise InitializationError(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess that APIError is not ideal name either, but this is mostly problem on re-auth not on initialization

do we know why and if we need to use APIError when a request fails?

@tmikuska tmikuska changed the title added raise for InitializationError when jwt is incorrect and usernam… CMLDEV-910 added raise for InitializationError when jwt is incorrect and usernam… Feb 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants