fix: [cleanup] Quick clean up on exception type

pull/222/head
chrisr3d 2018-08-07 18:13:25 +02:00
parent 63c3252062
commit 57af98720d
No known key found for this signature in database
GPG Key ID: 6BBED1B63A6D639F
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ try:
resolver = dns.resolver.Resolver() resolver = dns.resolver.Resolver()
resolver.timeout = 0.2 resolver.timeout = 0.2
resolver.lifetime = 0.2 resolver.lifetime = 0.2
except: except ModuleNotFoundError:
print("dnspython3 is missing, use 'pip install dnspython3' to install it.") print("dnspython3 is missing, use 'pip install dnspython3' to install it.")
sys.exit(0) sys.exit(0)