From 63c604359b829663737ac2fd0fa20d8f67405292 Mon Sep 17 00:00:00 2001 From: Soulter <905617992@qq.com> Date: Mon, 16 Dec 2024 22:53:23 +0800 Subject: [PATCH] fix: update --- astrbot/dashboard/routes/update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/astrbot/dashboard/routes/update.py b/astrbot/dashboard/routes/update.py index 2039e96df..8fc6fcd53 100644 --- a/astrbot/dashboard/routes/update.py +++ b/astrbot/dashboard/routes/update.py @@ -39,7 +39,7 @@ class UpdateRoute(Route): latest = False try: await self.astrbot_updator.update(latest=latest, version=version) - threading.Thread(target=self.astrbot_updator._reboot, args=(2, self.context)).start() + threading.Thread(target=self.astrbot_updator._reboot, args=(2, )).start() return Response().ok(None, "更新成功,AstrBot 将在 2 秒内全量重启以应用新的代码。").__dict__ except Exception as e: logger.error(f"/api/update_project: {traceback.format_exc()}")