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

Error codes #108

Merged
merged 4 commits into from
Jan 12, 2023
Merged

Error codes #108

merged 4 commits into from
Jan 12, 2023

Conversation

eddybl
Copy link
Contributor

@eddybl eddybl commented Jan 10, 2023

I reworked the authentication structure, stream lined some duplicate code and added also a error code check for request_data()

In general I don't think login() has to return something which is then checked for debug in every station API just to print that, but in that case login() can just directly print if debug is active

@eddybl eddybl mentioned this pull request Jan 10, 2023
@eddybl
Copy link
Contributor Author

eddybl commented Jan 11, 2023

No idea why there is a file conflict?

Also one could consider raising an exception if the login fails (without debug: just exception, with debug: exception with error message, for example)

@N4S4
Copy link
Owner

N4S4 commented Jan 11, 2023

I am sure the conflict is because I commit the logout integration before your PR, I will have a look today

@N4S4
Copy link
Owner

N4S4 commented Jan 12, 2023

Looks great,

merging to the branch

@N4S4 N4S4 merged commit 078495d into N4S4:error_codes Jan 12, 2023
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.

2 participants