From 3bde0101337782f75011667f6f312bdde0eaea92 Mon Sep 17 00:00:00 2001 From: Jing Ling Date: Fri, 8 May 2020 21:45:16 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D#80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- common/resolve.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/common/resolve.py b/common/resolve.py index 5d21ace..d8d4404 100644 --- a/common/resolve.py +++ b/common/resolve.py @@ -39,7 +39,8 @@ def update_data(data, records): if not items.get('content'): subdomain = items.get('subdomain') record = records.get(subdomain) - items.update(record) + if record: + items.update(record) data[index] = items return data