Commented out verify_connection() method

This commit is contained in:
sTiKyt 2020-08-13 23:00:12 +03:00
parent 8f72dcd9a7
commit 1619a63d12
No known key found for this signature in database
GPG Key ID: 510E1C3C9B2414B4

View File

@ -257,42 +257,42 @@ def global_message():
print(global_localization.line_of_dots) print(global_localization.line_of_dots)
def verify_connection( # def verify_connection(
host="https://dark-sec-official.com"): # Connection check # host="https://dark-sec-official.com"): # Connection check
run_command("clear") # run_command("clear")
try: # try:
req = requests.get(host, timeout=25) # req = requests.get(host, timeout=25)
if req.status_code == 200: # if req.status_code == 200:
print(localization.lang_verify_connection["connected"]) # print(localization.lang_verify_connection["connected"])
pass # pass
except ConnectionError: # except ConnectionError:
print(global_localization.hidden_eye_logo) # print(global_localization.hidden_eye_logo)
print(localization.lang_verify_connection["disconnected"]) # print(localization.lang_verify_connection["disconnected"])
print(localization.lang_verify_connection["verify_your_connection"]) # print(localization.lang_verify_connection["verify_your_connection"])
print(localization.lang_verify_connection["continue_warning"]) # print(localization.lang_verify_connection["continue_warning"])
print(localization.lang_verify_connection["continue_confirmation"]) # print(localization.lang_verify_connection["continue_confirmation"])
internet_choice = input(global_localization.input_line).lower() # internet_choice = input(global_localization.input_line).lower()
if internet_choice == "y": # if internet_choice == "y":
pass # pass
elif internet_choice == "n": # elif internet_choice == "n":
run_command("clear") # run_command("clear")
print(global_localization.hidden_eye_logo) # print(global_localization.hidden_eye_logo)
print(" " + # print(" " +
global_localization.by_darksec) # global_localization.by_darksec)
print(" " + # print(" " +
global_localization.official_website_link) # global_localization.official_website_link)
print(localization.lang_exit_message["help_to_improve_this_tool"]) # print(localization.lang_exit_message["help_to_improve_this_tool"])
print(localization.lang_exit_message["tell_if_page_got_broken"]) # print(localization.lang_exit_message["tell_if_page_got_broken"])
print(localization. # print(localization.
lang_exit_message["make_your_pull_request_or_issue"]) # lang_exit_message["make_your_pull_request_or_issue"])
print( # print(
localization.lang_exit_message["small_disclaimer_suggestion"]) # localization.lang_exit_message["small_disclaimer_suggestion"])
print(localization.lang_exit_message["forum_suggestion"]) # print(localization.lang_exit_message["forum_suggestion"])
print(localization.lang_exit_message["financial_support"]) # print(localization.lang_exit_message["financial_support"])
print(localization.lang_exit_message["thank_you"]) # print(localization.lang_exit_message["thank_you"])
exit() # exit()
else: # else:
verify_connection() # verify_connection()
# def check_permissions(): # def check_permissions():