From 510bf7f2e645251353ada3595fe636bab471b595 Mon Sep 17 00:00:00 2001 From: Egor Matveev Date: Sun, 1 Jun 2025 19:25:26 +0300 Subject: [PATCH] fix --- main.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.py b/main.py index d7f56f2..610b125 100644 --- a/main.py +++ b/main.py @@ -31,6 +31,9 @@ def update_host(host: str) -> bool: print(f"something wrong {container_id_run.err}") return False container_name = container_id_run.out + if not container_name: + print("Not correct node") + return False gen_cert = call(f"docker exec -it {container_name} certbot --nginx --email emmtvv@gmail.com --agree-tos -d \"{host}\"") if gen_cert.code != 0: -- 2.45.2