diff --git a/redirector.py b/redirector.py index 2193ae8..20429f2 100644 --- a/redirector.py +++ b/redirector.py @@ -103,7 +103,9 @@ def load_forced_list(cfg): except Exception as e: logging.error(f"Ошибка чтения входящих данных: {e}") - + exit(1) + if len(domains) == 0 and len(ips) == 0: + logging.info(f"В файле {cfg['filename']} не найдено доменов и IP") return domains, ips @@ -178,7 +180,7 @@ async def main(): configs = read_config(config_path, args.env) for cfg in configs: - logging.info(f"=== Обработка: {cfg['name']} ===") + logging.info(f"\n=== Обработка: {cfg['name']} ===") semaphore = Semaphore(cfg["threads"])