Skip to content

Commit

Permalink
Merge branch 'timothymiller#181-zone-doesnt-exist'
Browse files Browse the repository at this point in the history
  • Loading branch information
cotton105 committed Apr 29, 2024
2 parents 0358e0b + 4ea8e9a commit c55eaf7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cloudflare-ddns.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,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(
Expand Down Expand Up @@ -125,7 +125,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:
Expand Down

0 comments on commit c55eaf7

Please sign in to comment.