mirror of https://github.com/MISP/misp-modules
fix: [circl_passivedns] Return not found error
If passivedns returns empty response, return Not found error instead of error in logpull/405/head
parent
9afaeb162f
commit
6e21893be4
|
@ -30,6 +30,11 @@ class PassiveDNSParser():
|
|||
except Exception:
|
||||
self.result = {'error': 'There is an authentication error, please make sure you supply correct credentials.'}
|
||||
return
|
||||
|
||||
if not results:
|
||||
self.result = {'error': 'Not found'}
|
||||
return
|
||||
|
||||
mapping = {'count': 'counter', 'origin': 'text',
|
||||
'time_first': 'datetime', 'rrtype': 'text',
|
||||
'rrname': 'text', 'rdata': 'text',
|
||||
|
|
Loading…
Reference in New Issue