ipython/ipython — pull request #3354 by minrk (2013-05-23 23:29:25+00:00)
Title: catch socket.error in utils.localinterfaces

instead of socket.gaierror, which is a more specific subclass. Some failures
(e.g. connection timeouts) are not gaierrors.

Alternately, we might want to just catch any Exception.