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: