mirror of
https://github.com/KnugiHK/WhatsApp-Chat-Exporter.git
synced 2026-04-24 15:01:36 +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.
|
Process message reactions.
|
||||||
"""
|
"""
|
||||||
logger.info("Processing reactions...")
|
|
||||||
c = db.cursor()
|
c = db.cursor()
|
||||||
|
|
||||||
try:
|
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'")
|
c.execute("SELECT count(*) FROM sqlite_master WHERE type='table' AND name='message_add_on'")
|
||||||
if c.fetchone()[0] == 0:
|
if c.fetchone()[0] == 0:
|
||||||
return
|
return
|
||||||
|
|
||||||
|
logger.info("Processing reactions...\r")
|
||||||
|
|
||||||
c.execute("""
|
c.execute("""
|
||||||
SELECT
|
SELECT
|
||||||
|
|||||||
Reference in New Issue
Block a user