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

Raise exception if pdns_server and/or auth_token are not provided #755

Merged
merged 2 commits into from
Mar 17, 2021
Merged

Raise exception if pdns_server and/or auth_token are not provided #755

merged 2 commits into from
Mar 17, 2021

Conversation

rytis
Copy link
Contributor

@rytis rytis commented Mar 14, 2021

Currently if pdns_server is not defined we are going to fail with unclear exception (None has no ends_with). This is to add generic provider exceptin type and check for the presence of required attributes.

rytis added 2 commits March 14, 2021 18:56
Currently if `pdns_server` is not defined we are going to fail with unclear exception (`None` has no `ends_with`). This is to add generic provider exceptin type and check for the presence of required attributes.
Copy link
Collaborator

@adferrand adferrand left a comment

Choose a reason for hiding this comment

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

Thanks, this LGTM. And I appreciate the dedicate exception, I plan in the future to build a real hierarchy of exceptions classes for Lexicon.

@adferrand adferrand merged commit 0336af1 into AnalogJ:master Mar 17, 2021
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