handle case a custom domain is deleted in the meantime
This commit is contained in:
parent
f548e74e77
commit
414f6a2463
3
cron.py
3
cron.py
|
@ -709,7 +709,10 @@ def check_custom_domain():
|
||||||
LOG.d("Check verified domain for DNS issues")
|
LOG.d("Check verified domain for DNS issues")
|
||||||
|
|
||||||
for custom_domain in CustomDomain.filter_by(verified=True): # type: CustomDomain
|
for custom_domain in CustomDomain.filter_by(verified=True): # type: CustomDomain
|
||||||
|
try:
|
||||||
check_single_custom_domain(custom_domain)
|
check_single_custom_domain(custom_domain)
|
||||||
|
except ObjectDeletedError:
|
||||||
|
LOG.i("custom domain has been deleted")
|
||||||
|
|
||||||
|
|
||||||
def check_single_custom_domain(custom_domain):
|
def check_single_custom_domain(custom_domain):
|
||||||
|
|
Loading…
Reference in a new issue