mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-01-28 21:30:43 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user