Commit d197efb2 authored by hackhard's avatar hackhard
Browse files

Unused variable was removed

parent 3bcdbe1f
Pipeline #9305 passed with stage
in 2 minutes and 27 seconds
......@@ -108,7 +108,7 @@ class Analyzer:
# Loads JSON
HAR_json_tor = json.loads(tor.http_requests)
HAR_json_non_tor = json.loads(non_tor.http_requests)
self.captcha_checker_value = None
self.dom_analyze_value = None
self.status_check_value = None
......@@ -382,7 +382,9 @@ class Analyzer:
if _ in self.soup_t and _ not in self.soup_n:
res = 1
if res == 0:
self.__logger.info("Survived Checklist but still doubt (Further modules might help)")
self.__logger.info(
"Survived Checklist but still doubt (Further modules might help)"
)
self.dom_analyze_value = 2
else:
self.__logger.info("Tor Blocked : checklist!! ")
......@@ -419,12 +421,12 @@ class Analyzer:
"""
tor_H = {}
tor_N = {}
try:
try:
for i in range(0, len(tor_http_requests["log"]["entries"])):
tor_H[
tor_http_requests["log"]["entries"][i]["request"]["url"]
] = tor_http_requests["log"]["entries"][i]["response"]["status"]
# pylint: disable=C0206
# pylint: disable=C0206
for i in tor_H:
if tor_H[i] != 0 or tor_H != "" or tor_H is not None:
self.tor_store[i] = tor_H[i] # type: ignore
......@@ -458,7 +460,9 @@ class Analyzer:
elif int(first_status_t) < 300 and int(first_status_nt) > 399:
# When tor isn't blocked and non-tor is blocked
self.__logger.info("Tor is not blocked, rather non-tor browser is blocked")
self.__logger.info(
"Tor is not blocked, rather non-tor browser is blocked"
)
self.status_check_value = 2
else:
if int(first_status_t) > 299 and int(first_status_t) < 400:
......@@ -472,5 +476,7 @@ class Analyzer:
self.dom_analyze(
tor_html_data, non_tor_html_data, proxy_countries_html_code
)
except TypeError as e:
self.__logger.debug("Check for the HARExport. Might have actually returned nothing")
except TypeError:
self.__logger.debug(
"Check for the HARExport. Might have actually returned nothing"
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment