From ed5e62d479580ce9f651fb6516b78b0ff52f0ea7 Mon Sep 17 00:00:00 2001 From: Carlos Quintana <74399022+cquintana92@users.noreply.github.com> Date: Wed, 2 Oct 2024 09:45:54 +0200 Subject: [PATCH] fix: custom_domain deleted error (#2245) --- job_runner.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/job_runner.py b/job_runner.py index a05bbc02e..72caef269 100644 --- a/job_runner.py +++ b/job_runner.py @@ -247,12 +247,13 @@ def process_job(job: Job): domain_name = custom_domain.domain user = custom_domain.user + custom_domain_partner_id = custom_domain.partner_id CustomDomain.delete(custom_domain.id) Session.commit() LOG.d("Domain %s deleted", domain_name) - if custom_domain.partner_id is None: + if custom_domain_partner_id is None: send_email( user.email, f"Your domain {domain_name} has been deleted",