Public bug reported:

Binary package hint: python-dns

To replicate this problem, I first stopped networking (sudo sh
/etc/init.d/networking stop) and then executed a python program that
calls python-dns.  Here is the python-dns part of the stack trace:

  File "/var/lib/python-support/python2.5/DNS/Base.py", line 173, in req
    self.sendUDPRequest(server)
  File "/var/lib/python-support/python2.5/DNS/Base.py", line 189, in 
sendUDPRequest
    self.conn()
  File "/var/lib/python-support/python2.5/DNS/Base.py", line 137, in conn
    self.s.connect((self.ns,self.port))
  File "<string>", line 1, in connect
socket.error: (101, 'Network is unreachable')

Looking at the code in Base.py, socket errors on not trapped unlike
other errors in the file.  I will provide a patch for update when I have
the time.

** Affects: python-dns (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
Crash - Fails to trap socket.error when network is not available
https://launchpad.net/bugs/80360

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to