From 9b17a3e685c2bc7127b4469b858a5e948b35d418 Mon Sep 17 00:00:00 2001 From: rune Date: Mon, 20 Mar 2023 13:00:18 +0100 Subject: [PATCH] Removed some comments --- ddns.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/ddns.py b/ddns.py index 638d191..ebf50be 100755 --- a/ddns.py +++ b/ddns.py @@ -388,10 +388,8 @@ def updateip(force): # Only update domains with outdated IP's if remoteIP4 != current_ip: data = {'type': 'A', 'data': current_ip} - #print(domain_name, subdomain_id,current_ip,data) headers = {'Authorization': 'Bearer ' + apikey, "Content-Type": "application/json"} response = requests.patch('https://api.digitalocean.com/v2/domains/'+domain_name+'/records/' + subdomain_id, data=json.dumps(data), headers=headers) - # response = response.json() if str(response) != '': logging.error(time.strftime("%Y-%m-%d %H:%M")+' - Error : ' + str(response.json)) else: