Implement exceptions
Bug #244707 reported by
Damien Thébault
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
libasyncns-python |
Fix Released
|
Medium
|
Damien Thébault |
Bug Description
Functions should raise proper exceptions.
Related branches
Changed in libasyncns-python: | |
status: | In Progress → Fix Committed |
Changed in libasyncns-python: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
Exceptions should match the ones from the 'socket' module.
Quoting the python documentation [1]:
"exception gaierror ).[...] " res_search should raise exceptions too)
This exception is raised for address-related errors, for getaddrinfo() and getnameinfo(
(res_query/
[1] http:// www.python. org/doc/ lib/module- socket. html