This commit is contained in:
Julian Freeman
2024-08-11 17:01:46 -04:00
parent 362db77ff7
commit 030e5eec55
10 changed files with 164 additions and 110 deletions

View File

@@ -46,5 +46,8 @@ def read_kps_to_db(kps_file: str | PathLike[str], password: str,
blob_fy("::".join(entry.path[:-1])),
])
if len(values) == 0:
raise ValueError("Keepass 文件为空")
sqh.insert_into(table_name, insert_columns, values)
return kp