Skip to content

Commit

Permalink
Merge pull request syrusakbary#24 from skinnyp/master
Browse files Browse the repository at this point in the history
Caught attribute error while importing exception from DNS
  • Loading branch information
syrusakbary committed Mar 17, 2015
2 parents 17b7b84 + c8479eb commit 2ee218c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion validate_email.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def raw_input(prompt=''):
import DNS
ServerError = DNS.ServerError
DNS.DiscoverNameServers()
except ImportError:
except (ImportError, AttributeError):
DNS = None

class ServerError(Exception):
Expand Down

0 comments on commit 2ee218c

Please sign in to comment.