mirror of
https://github.com/aljazceru/validate_email.git
synced 2025-12-19 23:14:20 +01:00
caught attribute error while import exception
This commit is contained in:
@@ -26,7 +26,7 @@ try:
|
||||
import DNS
|
||||
ServerError = DNS.ServerError
|
||||
DNS.DiscoverNameServers()
|
||||
except ImportError:
|
||||
except (ImportError, AttributeError):
|
||||
DNS = None
|
||||
|
||||
class ServerError(Exception):
|
||||
|
||||
Reference in New Issue
Block a user