Implement exceptions

Bug #244707 reported by Damien Thébault
2
Affects Status Importance Assigned to Milestone
libasyncns-python
Fix Released
Medium
Damien Thébault

Bug Description

Functions should raise proper exceptions.

Related branches

Revision history for this message
Damien Thébault (damien-thebault) wrote :

Exceptions should match the ones from the 'socket' module.
Quoting the python documentation [1]:

"exception gaierror
    This exception is raised for address-related errors, for getaddrinfo() and getnameinfo().[...]"
(res_query/res_search should raise exceptions too)

[1] http://www.python.org/doc/lib/module-socket.html

Changed in libasyncns-python:
assignee: nobody → damien-thebault
importance: Undecided → Medium
status: New → In Progress
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.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.