caught attribute error while import exception
This commit is contained in:
parent
e5f8797e3f
commit
c8479eb9b3
1 changed files with 1 additions and 1 deletions
|
@ -26,7 +26,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