From 58753966f10b2b660cecddef1ef77edd0673df54 Mon Sep 17 00:00:00 2001 From: Luke Cotton Date: Fri, 26 Apr 2024 20:27:42 +0100 Subject: [PATCH 1/2] Continue updating other zones if one fails --- cloudflare-ddns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudflare-ddns.py b/cloudflare-ddns.py index 1d56863..bd137e9 100755 --- a/cloudflare-ddns.py +++ b/cloudflare-ddns.py @@ -124,7 +124,7 @@ def commitRecord(ip): response = cf_api("zones/" + option['zone_id'], "GET", option) if response is None or response["result"]["name"] is None: time.sleep(5) - return + continue base_domain_name = response["result"]["name"] for subdomain in subdomains: try: From 4ea8e9a3d1857ee3bde2ead2f4b2f63bd09c8134 Mon Sep 17 00:00:00 2001 From: Luke Cotton Date: Mon, 29 Apr 2024 12:34:11 +0100 Subject: [PATCH 2/2] Continue processing other zones if one fails in `deleteEntries()` --- cloudflare-ddns.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloudflare-ddns.py b/cloudflare-ddns.py index bd137e9..1c182c4 100755 --- a/cloudflare-ddns.py +++ b/cloudflare-ddns.py @@ -41,7 +41,7 @@ def deleteEntries(type): "GET", option) if answer is None or answer["result"] is None: time.sleep(5) - return + continue for record in answer["result"]: identifier = str(record["id"]) cf_api(