From 95a52231be11f77b8196b8cbd18af792676db7ea Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Sat, 24 Jan 2026 00:03:08 +0800 Subject: [PATCH] Fix the returning string for empty filter list --- 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 f9a5da4..cfd00bf 100644 --- a/Whatsapp_Chat_Exporter/utility.py +++ b/Whatsapp_Chat_Exporter/utility.py @@ -400,7 +400,7 @@ def get_chat_condition(filter: Optional[List[str]], include: bool, columns: List Raises: ValueError: If the column count is invalid or an unsupported platform is provided. """ - if filter is not None: + if filter is not None and len(filter) > 0: conditions = [] if len(columns) < 2 and jid is not None: raise ValueError(