handle case a custom domain is deleted in the meantime

This commit is contained in:
Son 2022-01-03 10:07:41 +01:00
parent f548e74e77
commit 414f6a2463

View file

@ -709,7 +709,10 @@ def check_custom_domain():
LOG.d("Check verified domain for DNS issues")
for custom_domain in CustomDomain.filter_by(verified=True): # type: CustomDomain
check_single_custom_domain(custom_domain)
try:
check_single_custom_domain(custom_domain)
except ObjectDeletedError:
LOG.i("custom domain has been deleted")
def check_single_custom_domain(custom_domain):