Merge pull request #24 from skinnyp/master
Caught attribute error while importing exception from DNS
This commit is contained in:
commit
2ee218c5d3
1 changed files with 1 additions and 1 deletions
|
@ -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):
|
||||||
|
|
Loading…
Reference in a new issue