Resolve flake8 warnings

This commit is contained in:
Sean Whalen
2018-11-15 11:16:06 -05:00
committed by GitHub
parent 0d7e14a784
commit ba8c6fd30c

View File

@@ -52,6 +52,7 @@ MAGIC_XML = b"\x3c\x3f\x78\x6d\x6c\x20"
DNS_CACHE = dict()
class ParserError(RuntimeError):
"""Raised whenever the parser fails for some reason"""
@@ -213,8 +214,6 @@ def parse_aggregate_report_xml(xml, nameservers=None, timeout=2.0):
"""
errors = []
DNS_CACHE = dict()
try:
xmltodict.parse(xml)["feedback"]
except Exception as e: