diff --git a/feed_dns.py b/feed_dns.py index 78951d1..45a4b9e 100755 --- a/feed_dns.py +++ b/feed_dns.py @@ -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 = {