Skip to content

Commit f36945e

Browse files
committed
Add exception handler for set_entry
Only a print of the error for now, but this does allow to still set the other entries without breaking the execution
1 parent 61b2326 commit f36945e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

app/letsencrypt.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,10 @@ def letsencrypt_telekom(br: WebDriver):
2525
prefix = entry["prefix"]
2626
ttl = entry["ttl"]
2727
content = input(f"Please enter your content for {typ} on {prefix}.{domain}:")
28-
set_entry(br, domain, typ, prefix, ttl, content)
28+
try:
29+
set_entry(br, domain, typ, prefix, ttl, content)
30+
except Exception as e:
31+
print(f"Error while adding entry: {e}")
2932
while not check_dns_txt_entry(f"{prefix}.{domain}", content):
3033
sleep(1)
3134
sleep(0.05)

0 commit comments

Comments
 (0)