Skip to content

Forced password change not indicated by error #48

Description

@nineclicks

I had to clone and modify the library to figure out that lastpass was forcing a password update. It would be helpful if the error message was indicated in the exception.

response.status_code: 403
response.text: "Password change is required!"

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/ec2-user/lastpass-python/lastpass/vault.py", line 11, in open_remote
    blob = cls.fetch_blob(username, password, multifactor_password, client_id)
  File "/home/ec2-user/lastpass-python/lastpass/vault.py", line 29, in fetch_blob
    blob = fetcher.fetch(session)
  File "/home/ec2-user/lastpass-python/lastpass/fetcher.py", line 50, in fetch
    raise NetworkError()
lastpass.exceptions.NetworkError

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions