mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-02-10 19:22:24 +00:00
ignoreUnreadable line in vcard #173
This makes multi line entry in vcard being ignored.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user