From 82e33f502ab9c0ace645f2c39eadfd754da03efc Mon Sep 17 00:00:00 2001 From: pierre geeraert Date: Sun, 16 Feb 2025 22:47:39 +0000 Subject: [PATCH] try to add a try catch to validate the complete run --- Update_dynhost.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Update_dynhost.py b/Update_dynhost.py index df271db..34d7f9a 100644 --- a/Update_dynhost.py +++ b/Update_dynhost.py @@ -41,4 +41,7 @@ def MyIP(): response = requests.get('https://ifconfig.me/ip') return response.text -result_update = update_zone(new_subdomain,MyIP(),str(Domain_id()[0])) +try: + result_update = update_zone(new_subdomain,MyIP(),str(Domain_id()[0])) +except: + raise \ No newline at end of file