diff --git a/src/tools/sync_db.py b/src/tools/sync_db.py index fb32b82..15dfaad 100644 --- a/src/tools/sync_db.py +++ b/src/tools/sync_db.py @@ -231,7 +231,7 @@ def generate_union_table(mysql_conn): if not matched: # 否则匹配第一个未匹配过的 for idx in set_idx: - if stash_data[idx]['code'].lower() in whisper_codes: + if stash_data[idx]['code'] and stash_data[idx]['code'].lower() in whisper_codes: continue if not stash_data[idx].get('matched', False): s = stash_data[idx]