From e2f497dbb6c37835bcee3a89e4a142a5bd550fa8 Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sun, 25 Jun 2023 12:42:37 +0800 Subject: [PATCH] Bug fix on exported chat --- Whatsapp_Chat_Exporter/utility.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/utility.py b/Whatsapp_Chat_Exporter/utility.py index bb479d0..8f2ee2b 100644 --- a/Whatsapp_Chat_Exporter/utility.py +++ b/Whatsapp_Chat_Exporter/utility.py @@ -134,7 +134,7 @@ def import_from_json(json_file, data): def get_file_name(contact: str, chat: ChatStore): - if "@" not in contact and contact not in ("000000000000000", "000000000000001"): + if "@" not in contact and contact not in ("000000000000000", "000000000000001", "ExportedChat"): raise ValueError("Unexpected contact format: " + contact) phone_number = contact.split('@')[0] if "-" in contact: