From ea01a727cf2dc9c1bd6c3fd9c7be8f408bdb5946 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sat, 13 Jul 2024 18:33:33 +0800 Subject: [PATCH] Fixed the wrong boolean value --- 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 95fc155..872f619 100644 --- a/Whatsapp_Chat_Exporter/vcards_contacts.py +++ b/Whatsapp_Chat_Exporter/vcards_contacts.py @@ -13,7 +13,7 @@ class ContactsFromVCards: self.contact_mapping = [] def is_empty(self): - return len(self.contact_mapping) > 0 + return self.contact_mapping == [] def load_vcf_file(self, vcf_file_path: str, default_country_code: str): self.contact_mapping = read_vcards_file(vcf_file_path, default_country_code)