From e0967a3104fae7f7600024b3e1a509efa153950f Mon Sep 17 00:00:00 2001 From: KnugiHK <24708955+KnugiHK@users.noreply.github.com> Date: Mon, 12 Jan 2026 22:23:16 +0800 Subject: [PATCH] Defer reaction logging until table existence is confirmed Moved the "Processing reactions..." log entry to occur after the `message_add_on` table check. This prevents the log from appearing on the old WhatsApp schema --- Whatsapp_Chat_Exporter/android_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Whatsapp_Chat_Exporter/android_handler.py b/Whatsapp_Chat_Exporter/android_handler.py index bb4a3ea..8f4c71c 100644 --- a/Whatsapp_Chat_Exporter/android_handler.py +++ b/Whatsapp_Chat_Exporter/android_handler.py @@ -485,7 +485,6 @@ def _get_reactions(db, data): """ Process message reactions. """ - logger.info("Processing reactions...") c = db.cursor() try: @@ -493,6 +492,8 @@ def _get_reactions(db, data): c.execute("SELECT count(*) FROM sqlite_master WHERE type='table' AND name='message_add_on'") if c.fetchone()[0] == 0: return + + logger.info("Processing reactions...\r") c.execute(""" SELECT