caught attribute error while import exception

This commit is contained in:
Parham Saidi 2014-08-26 14:55:49 +00:00
parent e5f8797e3f
commit c8479eb9b3

View file

@ -26,7 +26,7 @@ try:
import DNS
ServerError = DNS.ServerError
DNS.DiscoverNameServers()
except ImportError:
except (ImportError, AttributeError):
DNS = None
class ServerError(Exception):