mirror of
https://github.com/LC044/WeChatMsg
synced 2025-02-23 03:22:17 +08:00
修复路径问题
This commit is contained in:
parent
7ba44f92e3
commit
87a48c5955
@ -12,7 +12,7 @@ class ExceptionHanding:
|
||||
|
||||
def parser_exc(self):
|
||||
if isinstance(self.exc_value, PermissionError):
|
||||
return f'权限错误,请使用管理员身份运行'
|
||||
return f'权限错误,请使用管理员身份运行并将文件夹设置为可读写'
|
||||
elif isinstance(self.exc_value, sqlite3.DatabaseError):
|
||||
return '数据库错误,请删除app文件夹后重启电脑再运行软件'
|
||||
elif isinstance(self.exc_value, OSError) and self.exc_value.errno == 28:
|
||||
|
@ -310,7 +310,7 @@ class OutputMedia(QThread):
|
||||
self.time_range = time_range
|
||||
|
||||
def run(self):
|
||||
origin_path = os.path.join(os.path.abspath('../../DataBase'), output_dir, '聊天记录', self.contact.remark)
|
||||
origin_path = os.path.join(os.getcwd(), output_dir, '聊天记录', self.contact.remark)
|
||||
messages = msg_db.get_messages_by_type(self.contact.wxid, 34, time_range=self.time_range)
|
||||
for message in messages:
|
||||
is_send = message[4]
|
||||
|
Loading…
Reference in New Issue
Block a user