Merge pull request #24 from skinnyp/master

Caught attribute error while importing exception from DNS
This commit is contained in:
Syrus Akbary 2015-03-17 10:55:43 -07:00
commit 2ee218c5d3

View file

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