Browse Source

fix: [circl_passivedns] Return not found error

If passivedns returns empty response, return Not found error instead of error in log
pull/405/head
Jakub Onderka 2 years ago
parent
commit
6e21893be4
  1. 5
      misp_modules/modules/expansion/circl_passivedns.py

5
misp_modules/modules/expansion/circl_passivedns.py

@ -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…
Cancel
Save