mirror of https://github.com/MISP/misp-modules
fix: [cleanup] Quick clean up on exception type
parent
63c3252062
commit
57af98720d
|
@ -6,7 +6,7 @@ try:
|
|||
resolver = dns.resolver.Resolver()
|
||||
resolver.timeout = 0.2
|
||||
resolver.lifetime = 0.2
|
||||
except:
|
||||
except ModuleNotFoundError:
|
||||
print("dnspython3 is missing, use 'pip install dnspython3' to install it.")
|
||||
sys.exit(0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue