From 6ff3246439870c1fc84ffc2858357710a4e3a29c Mon Sep 17 00:00:00 2001 From: Official-Husko Date: Mon, 1 Jul 2024 12:40:06 +0200 Subject: [PATCH] fix green text not green --- modules/config_manager.py | 2 +- modules/pixeldrain.py | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/modules/config_manager.py b/modules/config_manager.py index dd5617a..1b7446a 100644 --- a/modules/config_manager.py +++ b/modules/config_manager.py @@ -74,7 +74,7 @@ def Writer(): } with open("config.json", "w") as cfg_file: json.dump(template, cfg_file, indent=6) - print(colored(f"{info} New config file generated! Configure it and restart the program or wait 5 seconds and the program will continue with the default values."), "green") + print(colored(f"{info} New config file generated! Configure it and restart the program or wait 5 seconds and the program will continue with the default values.", "green")) print("") sleep(5) return template diff --git a/modules/pixeldrain.py b/modules/pixeldrain.py index 21895c4..0dba704 100644 --- a/modules/pixeldrain.py +++ b/modules/pixeldrain.py @@ -26,8 +26,12 @@ def Uploader(file, proxy_list, user_agents, api_keys): calc_size = Site_Data_CLSS.size_unit_calc(site, file_size) + print(api_keys) + api_key = api_keys.get("apiKey", False) + print(api_key) + if api_key in (False, ""): raise Exception("Missing API Credentials?")