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}