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
This commit is contained in:
KnugiHK
2026-01-12 22:23:16 +08:00
parent db50f24dd8
commit e0967a3104

View File

@@ -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