From e8126a40c21eb24b7242ac3f012c6cfad19db59b Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Sat, 27 Apr 2024 19:15:56 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=90=88=E5=B9=B6=E6=95=B0?= =?UTF-8?q?=E6=8D=AE=E5=BA=93=E7=9A=84=E5=AE=B9=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/wx_info/merge_db.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pywxdump/wx_info/merge_db.py b/pywxdump/wx_info/merge_db.py index c0fa459..74cd02b 100644 --- a/pywxdump/wx_info/merge_db.py +++ b/pywxdump/wx_info/merge_db.py @@ -243,6 +243,8 @@ def merge_db(db_paths, save_path="merge.db", CreateTime: int = 0, endCreateTime: # 获取表中的字段名 sql = f"PRAGMA table_info({table})" columns = execute_sql(db, sql) + if not columns or len(columns) < 1: + continue col_type = { (i[1] if isinstance(i[1], str) else i[1].decode(), i[2] if isinstance(i[2], str) else i[2].decode()) for i in columns}