Skip to content

Commit

Permalink
fixed ruff issues
Browse files Browse the repository at this point in the history
  • Loading branch information
McFacePunch committed Oct 19, 2024
1 parent 695d98b commit b0c6c1e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions dnsrecon/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
import os
import sqlite3
import sys
from argparse import ArgumentParser, RawTextHelpFormatter, ArgumentError
from argparse import ArgumentError, ArgumentParser, RawTextHelpFormatter
from concurrent import futures
from pathlib import Path
from random import SystemRandom
Expand Down Expand Up @@ -1506,7 +1506,6 @@ def main():
# Option Variables
#

returned_records = []
output_file = None
xfr = None
bing = False
Expand Down Expand Up @@ -1762,7 +1761,7 @@ def main():
if not os.path.isfile(arguments.input_list):
logger.error(f"Input list file '{arguments.input_list}' does not exist.")
sys.exit(1)
with open(arguments.input_list, 'r') as f:
with open(arguments.input_list) as f:
domain_list = [line.strip() for line in f if line.strip()]
if not domain_list:
logger.error(f"No domains found in the input list file '{arguments.input_list}'.")
Expand Down

0 comments on commit b0c6c1e

Please sign in to comment.