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
Extend DNSExceptions with human-readable messages #84
Comments
Yeah, that sounds useful, thanks! /Bob |
|
Bob, could you look at #85? Does it look okay? Could it be merged or should I fix something there? |
It's looking very nice; I've just been busy with other stuff. Will try to get it (and the python 3 branch) merged very soon. Thanks! /Bob |
|
Merged. |
Hello!
I wonder if you are open to accepting patches which would add human-readable messages to DNSException messsages.
The motivation is that currently dnspython users have to implement own logic which catches exceptions e.g. from resolver.query and translates them to meanigful messages for users. I had to do that myself several time.
I propose to add generic but explanatory text messages like 'YXDOMAIN from 192.0.2.1 when querying for x.y.z.example.' to DNSExceptions so dnspython users could simply do str(e) and be done with it.
Are you okay with the idea?
The text was updated successfully, but these errors were encountered: