massdns data import better error handling

This commit is contained in:
Geoffrey Frogeye 2024-12-12 01:28:09 +01:00
parent d8a3e2ac9c
commit eabe4b84ae
Signed by: geoffrey
GPG key ID: C72403E7F82E6AD8

View file

@ -167,8 +167,13 @@ class MassDnsParser(Parser):
)
self.register(record)
self.prof.enter_step("parse_massdns")
except IndexError:
except KeyError:
# Unhandle record type
continue
except IndexError as err:
# Aborted file
print(err)
break
PARSERS = {