mirror of
https://github.com/domainaware/parsedmarc.git
synced 2026-04-04 20:58:53 +00:00
Resolve flake8 warnings
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user