From e287ccb724686a1e77432ba77d5a0b9528fd867c Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sat, 26 Apr 2025 17:59:10 +0800 Subject: [PATCH] Bug fix on None metadata #148 --- 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 f465362..6d9fd36 100644 --- a/Whatsapp_Chat_Exporter/utility.py +++ b/Whatsapp_Chat_Exporter/utility.py @@ -436,7 +436,7 @@ def determine_metadata(content: sqlite3.Row, init_msg: Optional[str]) -> Optiona msg = "Someone joined this group by using a invite link" # TODO: Find out who elif content["action_type"] == 27: msg += " changed the group description to:
" - msg += content['data'].replace("\n", '
') + msg += (content['data'] or "Unknown").replace("\n", '
') elif content["action_type"] == 28: try: old = content['old_jid'].split('@')[0]