Skip to content

Commit

Permalink
增加合并数据库的容错
Browse files Browse the repository at this point in the history
  • Loading branch information
xaoyaoo committed Apr 27, 2024
1 parent 76e8d99 commit e8126a4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pywxdump/wx_info/merge_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e8126a4

Please sign in to comment.