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

Better error handling and default values #25

Merged
merged 2 commits into from Jun 24, 2017

Conversation

dnsmichi
Copy link
Collaborator

Thanks @bodsch for initial patch in #21

refs #7
fixes #9
refs #15

Michael Friedrich and others added 2 commits June 24, 2017 17:41
This avoid duplicated code for using the RestClient class
to connect and parse the data.

It also allows us to add error handling in just one place
in the future.
…a class attributes

Patch is a mix of Bodo's work in #21 and my own fixes. Main difference
is that the api data handling now happens in just one place. Further I prefer
default initializers to long if-then-else statements (they're unreadable).

refs #21
fixes #9
@dnsmichi dnsmichi added this to the 1.3.0 milestone Jun 24, 2017
@dnsmichi dnsmichi self-assigned this Jun 24, 2017
@dnsmichi dnsmichi merged commit d42adaa into master Jun 24, 2017
@dnsmichi dnsmichi deleted the feature/connection-handling branch June 24, 2017 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

dashing don't show any result
1 participant