From 8ccac37ca524bb4fa12b8819c9acfc946133c190 Mon Sep 17 00:00:00 2001 From: DarkMidus <39868305+darkmidus@users.noreply.github.com> Date: Sat, 23 May 2020 19:26:32 -0500 Subject: [PATCH] Added more error handling --- Defs/ActionManager/main_runner.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Defs/ActionManager/main_runner.py b/Defs/ActionManager/main_runner.py index 5816d3f..1adc037 100644 --- a/Defs/ActionManager/main_runner.py +++ b/Defs/ActionManager/main_runner.py @@ -12,6 +12,7 @@ import Defs.ActionManager.simple_informant as simple_informant import Defs.LocalizationManager.lang_action_manager.lang_main_runner as localization import Defs.LocalizationManager.lang_global_usage as global_localization import os +import time default_palette = theme.default_palette module_loading_message = simple_informant.module_loading_message @@ -384,7 +385,10 @@ def start_phishing_page(page, custom_option): # Phishing pages selection menu input(localization.lang_start_phishing_page["press_enter_to_contunue_if_setup_correctly"]) else: - simple_informant.exit_message(port) + run_command('clear') + print("Please choose a valid option") + time.sleep(1) + start_main_menu() def enter_custom_redirecting_url(): # Question where user can input custom web-link run_command('clear')