Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the raising of Exception on status code != 200 #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

UlrikHD
Copy link
Contributor

@UlrikHD UlrikHD commented Oct 6, 2024

Currently login() will raise Exception if login was unsuccessful/does not return status code 200. However it can be useful to have easy access to the status code to check why the login was unsuccessfully. With the current implementation you would need to scrape the status code by parsing the Exception message, which is different from how it's done for every other API call in lemmyhttp.py.

Copy link

sonarcloud bot commented Oct 6, 2024

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.

1 participant