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
|
||||
ServerError = DNS.ServerError
|
||||
DNS.DiscoverNameServers()
|
||||
except ImportError:
|
||||
except (ImportError, AttributeError):
|
||||
DNS = None
|
||||
|
||||
class ServerError(Exception):
|
||||
|
|
Loading…
Reference in a new issue