catch ovh_update errors
This commit is contained in:
parent
5aa8575127
commit
79eb79f46c
@ -152,6 +152,7 @@ def ovh_update_zone(domain, update_zone_list, delete_zone_list):
|
||||
if not len(update_zone_list) and not len(delete_zone_list):
|
||||
return False
|
||||
|
||||
try:
|
||||
client = ovh.Client()
|
||||
|
||||
for host, fieldtype, target in delete_zone_list:
|
||||
@ -185,6 +186,9 @@ def ovh_update_zone(domain, update_zone_list, delete_zone_list):
|
||||
#print("Refresh zone %s" % domain)
|
||||
client.post('/domain/zone/%s/refresh' % domain)
|
||||
return True
|
||||
except:
|
||||
print('OVH update error\n')
|
||||
return False
|
||||
|
||||
|
||||
def send_update_mail(mail_to, mail_from, zone_domain, update_zone_list, delete_zone_list, mail_ignore_list, wan):
|
||||
|
Loading…
Reference in New Issue
Block a user