handle case a custom domain is deleted in the meantime
This commit is contained in:
parent
f548e74e77
commit
414f6a2463
5
cron.py
5
cron.py
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue