Revision 98fa19b0 lib/utils.py

b/lib/utils.py
739 739
    """
740 740
    try:
741 741
      result = socket.gethostbyname_ex(hostname)
742
    except socket.gaierror, err:
743
      # hostname not found in DNS
742
    except (socket.gaierror, socket.herror, socket.error), err:
743
      # hostname not found in DNS, or other socket exception in the
744
      # (code, description format)
744 745
      raise errors.ResolverError(hostname, err.args[0], err.args[1])
745 746

  
746 747
    return result

Also available in: Unified diff