From beaf272a638b5d2fc83e24a51461d5c316349166 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Wed, 26 Nov 2025 22:05:42 +0800 Subject: [PATCH] ignoreUnreadable line in vcard #173 This makes multi line entry in vcard being ignored. --- Whatsapp_Chat_Exporter/vcards_contacts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/vcards_contacts.py b/Whatsapp_Chat_Exporter/vcards_contacts.py index 315aa80..9360b2f 100644 --- a/Whatsapp_Chat_Exporter/vcards_contacts.py +++ b/Whatsapp_Chat_Exporter/vcards_contacts.py @@ -36,7 +36,7 @@ class ContactsFromVCards: def read_vcards_file(vcf_file_path, default_country_code: str): contacts = [] with open(vcf_file_path, mode="r", encoding="utf-8") as f: - reader = vobject.readComponents(f) + reader = vobject.readComponents(f, ignoreUnreadable=True) for row in reader: if hasattr(row, 'fn'): name = str(row.fn.value)