Skip to content

Commit

Permalink
Update ECODFF to 2.0.1
Browse files Browse the repository at this point in the history
* Make it compatible with DNSPython < 2.2.0
  • Loading branch information
hawkeye116477 committed Sep 8, 2023
1 parent 51fed4a commit ba0b392
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/ECODFF.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,13 @@
import asyncio
from tempfile import NamedTemporaryFile
import importlib.util
import git
from dns.asyncresolver import resolve
from dns.resolver import NoNameservers, NXDOMAIN, NoAnswer, LifetimeTimeout
from dns.resolver import NoNameservers, NXDOMAIN, NoAnswer, Timeout
import aiohttp
import git

# Version number
SCRIPT_VERSION = "2.0"
SCRIPT_VERSION = "2.0.1"

# Parse arguments
parser = argparse.ArgumentParser()
Expand Down Expand Up @@ -130,7 +130,7 @@ async def domain_dns_check(domain):
try:
await resolve(domain)
answers_NS = await resolve(domain, "NS", raise_on_no_answer=False)
except (NXDOMAIN, NoAnswer, NoNameservers, LifetimeTimeout):
except (NXDOMAIN, NoAnswer, NoNameservers, Timeout):
offline_pages.append(domain)
else:
if any((PARKED_PAT.search(str(answer)) for answer in answers_NS)):
Expand Down

0 comments on commit ba0b392

Please sign in to comment.