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