mirror of https://github.com/MISP/misp-modules
fix: [dbl_spamhaus] if you want to run local test, the dns module
expansion is taking over from the original dnspython3 library. The trick is just to get rid of the syspath to exclude the local directory until the proper library is loaded.pull/613/head
parent
5aa47e7aeb
commit
113a112001
|
@ -2,7 +2,10 @@ import json
|
|||
import sys
|
||||
|
||||
try:
|
||||
original_path = sys.path
|
||||
sys.path = original_path[1:]
|
||||
import dns.resolver
|
||||
sys.path = original_path
|
||||
resolver = dns.resolver.Resolver()
|
||||
resolver.timeout = 0.2
|
||||
resolver.lifetime = 0.2
|
||||
|
|
Loading…
Reference in New Issue