mirror of
https://github.com/adulau/passive-dns-atlas.git
synced 2025-01-04 23:13:17 +00:00
Sometime an abuf is un-parseable but cousteau doesn't like exception ;-)
This commit is contained in:
parent
6ed6b878e0
commit
e32cab8ea4
1 changed files with 2 additions and 0 deletions
|
@ -49,6 +49,8 @@ def on_result_response(*args ):
|
|||
# Some of the records are not automatically decoded and need to pass
|
||||
# into ripe.atlas.sagan firat
|
||||
res = DnsResult.get(args[0],parse_buf=True)
|
||||
if res.is_error:
|
||||
return True
|
||||
if (res.responses[0].abuf.answers):
|
||||
for answer in res.responses[0].abuf.answers:
|
||||
process_answers(data=answer['raw_data'], sagan=True)
|
||||
|
|
Loading…
Reference in a new issue